summaryrefslogtreecommitdiff
path: root/designate/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'designate/exceptions.py')
-rw-r--r--designate/exceptions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/designate/exceptions.py b/designate/exceptions.py
index 406220f6..e140f276 100644
--- a/designate/exceptions.py
+++ b/designate/exceptions.py
@@ -46,8 +46,8 @@ class RelationNotLoaded(DesignateException):
super(RelationNotLoaded, self).__init__(*args, **kwargs)
- self.error_message = "%(relation)s is not loaded on %(object)s" % \
- {"relation": self.relation, "object": self.object.obj_name()}
+ self.error_message = ("%(relation)s is not loaded on %(object)s" %
+ {"relation": self.relation, "object": self.object.obj_name()})
def __str__(self):
return self.error_message
@@ -502,8 +502,8 @@ class ResourceNotFound(NotFound):
class MissingProjectID(BadRequest):
# Note: This should be 400, but is 401 for compatibility with
# previous versions of the API.
- # https://github.com/openstack/designate/blob/stable/wallaby/ \
- # designate/api/middleware.py#L132
+ # https://github.com/openstack/designate/blob/stable/wallaby/
+ # designate/api/middleware.py#L132
error_code = 401
error_type = 'missing_project_id'