Fix missing print format error
Missing print format will cause 'ValueError: unsupported format character' error, this is to fix it. Change-Id: I3b3d77e259d2c0326870383c7f51b42876d831ed
This commit is contained in:
parent
6307fbfa08
commit
278aa29ce1
|
@ -297,7 +297,7 @@ def simulate_controller(data_model, delete=False, update=False, create=False,
|
||||||
|
|
||||||
|
|
||||||
class InvalidHandlerInputObject(Exception):
|
class InvalidHandlerInputObject(Exception):
|
||||||
message = "Invalid Input Object %(obj_type)"
|
message = "Invalid Input Object %(obj_type)s"
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
message = self.message % kwargs
|
message = self.message % kwargs
|
||||||
|
|
|
@ -103,7 +103,7 @@ class L7RuleValidation(APIException):
|
||||||
|
|
||||||
|
|
||||||
class SingleCreateDetailsMissing(APIException):
|
class SingleCreateDetailsMissing(APIException):
|
||||||
msg = _("Missing details for %(type)s object: %(name)")
|
msg = _("Missing details for %(type)s object: %(name)s")
|
||||||
code = 400
|
code = 400
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue