Merge "Fix missing print format error"

This commit is contained in:
Zuul 2019-01-11 05:09:49 +00:00 committed by Gerrit Code Review
commit d0c499dbd6
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): 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

View File

@ -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