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:
zhufl 2019-01-09 16:52:52 +08:00
parent 6307fbfa08
commit 278aa29ce1
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ def simulate_controller(data_model, delete=False, update=False, create=False,
class InvalidHandlerInputObject(Exception):
message = "Invalid Input Object %(obj_type)"
message = "Invalid Input Object %(obj_type)s"
def __init__(self, **kwargs):
message = self.message % kwargs

View File

@ -103,7 +103,7 @@ class L7RuleValidation(APIException):
class SingleCreateDetailsMissing(APIException):
msg = _("Missing details for %(type)s object: %(name)")
msg = _("Missing details for %(type)s object: %(name)s")
code = 400