diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-02 12:01:49 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-02 12:01:49 -0700 |
| commit | ae1842174f4b079c8d84b32ddad4df1b7ff29bec (patch) | |
| tree | 2e2027174b123bd3925d5b1da8016c937ce6678e /nova/exception.py | |
| parent | 8b6de21b5ed4248998eef7deb57b1bc4f3863276 (diff) | |
| download | nova-ae1842174f4b079c8d84b32ddad4df1b7ff29bec.tar.gz nova-ae1842174f4b079c8d84b32ddad4df1b7ff29bec.tar.xz nova-ae1842174f4b079c8d84b32ddad4df1b7ff29bec.zip | |
Tests to assure all exceptions can be raised as well as fixing NotAuthorized
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/exception.py b/nova/exception.py index d3d58f3b2..5b824bba6 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -65,7 +65,7 @@ class BuildInProgress(Error): class DBError(Error): """Wraps an implementation specific exception.""" - def __init__(self, inner_exception): + def __init__(self, inner_exception=None): self.inner_exception = inner_exception super(DBError, self).__init__(str(inner_exception)) @@ -122,7 +122,7 @@ class NotAuthorized(NovaException): message = _("Not authorized.") def __init__(self, *args, **kwargs): - super(NotFound, self).__init__(**kwargs) + super(NotAuthorized, self).__init__(**kwargs) class AdminRequired(NotAuthorized): |
