11483 ImagePkgStateError needs correction
authorShawn Walker <srw@sun.com>
Mon, 21 Sep 2009 21:06:43 -0500
changeset 1372 484408dfa0a1
parent 1371 6f2e680e3b80
child 1373 aaeaa58aeb99
11483 ImagePkgStateError needs correction
src/modules/client/api_errors.py
--- a/src/modules/client/api_errors.py	Mon Sep 21 18:30:06 2009 -0700
+++ b/src/modules/client/api_errors.py	Mon Sep 21 21:06:43 2009 -0500
@@ -77,7 +77,7 @@
                 self.state = state
 
 
-class ImagePkgStateError(Exception):
+class ImagePkgStateError(ApiException):
 
         def __init__(self, fmri, states):
                 ApiException.__init__(self)
@@ -86,8 +86,8 @@
 
         def __str__(self):
                 return _("Invalid package state change attempted '%(states)s' "
-                    "for package '%(fmri)s'." % { "states": self.states,
-                    "fmri": self.fmri })
+                    "for package '%(fmri)s'.") % { "states": self.states,
+                    "fmri": self.fmri }
 
 
 class IpkgOutOfDateException(ApiException):