diff --git a/util/error.py b/util/error.py index 44b9b0e01..f4f40d981 100644 --- a/util/error.py +++ b/util/error.py @@ -6,6 +6,9 @@ class UUError(Exception): """Generic Python rule error.""" + def __init__(self, message): + self.message = message + super(UUError, self).__init__(message) class UUFileSizeError(UUError): diff --git a/util/msi.py b/util/msi.py index 74bfa7c9f..7835fd34d 100644 --- a/util/msi.py +++ b/util/msi.py @@ -98,7 +98,7 @@ def _make_exception(name, message): data_obj_write, DataObjWriteError = make('DataObjWrite', 'Could not write data object') data_obj_close, DataObjCloseError = make('DataObjClose', 'Could not close data object') data_obj_copy, DataObjCopyError = make('DataObjCopy', 'Could not copy data object') -data_obj_repl, DataObjReplError = make('DataObjRepl', 'Could not replicate data object') +data_obj_repl, DataObjReplError = make('DataObjRepl', 'Could not replicate data object') data_obj_unlink, DataObjUnlinkError = make('DataObjUnlink', 'Could not remove data object') data_obj_rename, DataObjRenameError = make('DataObjRename', 'Could not rename data object') data_obj_chksum, DataObjChksumError = make('DataObjChksum', 'Could not checksum data object')