diff options
Diffstat (limited to 'novaclient/base.py')
| -rw-r--r-- | novaclient/base.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/novaclient/base.py b/novaclient/base.py index ee24ea76..7928f8d5 100644 --- a/novaclient/base.py +++ b/novaclient/base.py @@ -19,7 +19,8 @@ Base utilities to build API operation managers and objects on top of. """ -from novaclient.exceptions import NotFound +from novaclient import exceptions + # Python 2.4 compat try: @@ -101,8 +102,8 @@ class ManagerWithFind(Manager): try: return rl[0] except IndexError: - raise NotFound(404, "No %s matching %s." % - (self.resource_class.__name__, kwargs)) + msg = "No %s matching %s." % (self.resource_class.__name__, kwargs) + raise exceptions.NotFound(404, msg) def findall(self, **kwargs): """ |
