Merge "HardwareManagerMethodNotFound requires a method"
This commit is contained in:
commit
b51b303403
@ -266,11 +266,8 @@ class HardwareManagerMethodNotFound(RESTError):
|
|||||||
msg = 'No HardwareManager found to handle method'
|
msg = 'No HardwareManager found to handle method'
|
||||||
message = msg + '.'
|
message = msg + '.'
|
||||||
|
|
||||||
def __init__(self, method=None):
|
def __init__(self, method):
|
||||||
if method is not None:
|
self.details = (self.msg + ': "{0}".').format(method)
|
||||||
self.details = (self.msg + ': "{0}".').format(method)
|
|
||||||
else:
|
|
||||||
self.details = self.message
|
|
||||||
super(HardwareManagerMethodNotFound, self).__init__(self.details)
|
super(HardwareManagerMethodNotFound, self).__init__(self.details)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user