projects
/
invirt/packages/invirt-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get rid of confusing err=True option to invirt.remctl.remctl.
[invirt/packages/invirt-base.git]
/
python
/
invirt
/
common.py
diff --git
a/python/invirt/common.py
b/python/invirt/common.py
index
a85d955
..
eb2e90e
100644
(file)
--- a/
python/invirt/common.py
+++ b/
python/invirt/common.py
@@
-75,7
+75,9
@@
class InvalidInput(Exception):
class CodeError(Exception):
"""Exception for internal errors or bad faith input."""
- pass
+ def __init__(self, message, code=None):
+ Exception.__init__(self, message)
+ self.code = code
#
# Tests.