rapi: Don't throw class as an exception
authorMichael Hanselmann <hansmi@google.com>
Wed, 15 Oct 2008 10:13:01 +0000 (10:13 +0000)
committerMichael Hanselmann <hansmi@google.com>
Wed, 15 Oct 2008 10:13:01 +0000 (10:13 +0000)
Reviewed-by: ultrotter

lib/rapi/rlib2.py

index 5d65ce2..790839a 100644 (file)
@@ -233,7 +233,7 @@ class R_2_instances_name_tags(baserlib.R_Generic):
     """
     if 'tag' not in self.queryargs:
       # no we not gonna delete all tags from an instance
-      raise http.HTTPNotImplemented
+      raise http.HTTPNotImplemented()
     return baserlib._Tags_DELETE(constants.TAG_INSTANCE,
                                  self.queryargs['tag'],
                                  name=self.items[0])