Removes unused parameters from Compute exceptions

* Removed "message" paramter that was not being used. A value
  for this exception was not being passed, which was causing
  a fault when these exceptions were raised

Change-Id: I7f19b748428b905bab3875bead17ebb6436c0651
This commit is contained in:
Daryl Walleck
2013-07-30 15:41:27 -05:00
parent 0032f246dc
commit d41119fbe6

View File

@@ -82,7 +82,7 @@ class ItemNotFound(Exception):
class BadMethod(Exception):
def __init__(self, message):
def __init__(self):
self.message = "405 - Bad Method."
def __str__(self):
@@ -98,8 +98,8 @@ class Unauthorized(Exception):
class Forbidden(Exception):
def __init__(self, message):
self.message = "403 - Forbidden Operation"
def __init__(self):
self.message = "403 - Forbidden."
def __str__(self):
return repr(self.message)
@@ -175,7 +175,7 @@ class AuthenticationTimeoutException(Exception):
class BadMediaType(Exception):
def __init__(self, message):
def __init__(self):
self.message = '415 - Bad media type.'
def __str__(self):