Fix the error for the module of falcon
File "/home/zuul/src/opendev.org/openstack/freezer-api/freezer_api/common/exceptions.py", line 73, in handle status=falcon.status.HTTP_404, AttributeError: module 'falcon' has no attribute 'status' Change-Id: I3b77a5a3799f066ef189862e75de24b4c25c0569
This commit is contained in:
parent
e02a492817
commit
22d20337a8
|
@ -70,7 +70,7 @@ class DocumentNotFound(FreezerAPIException):
|
|||
@staticmethod
|
||||
def handle(ex, req, resp, params):
|
||||
raise falcon.HTTPError(
|
||||
status=falcon.status.HTTP_404,
|
||||
status=falcon.HTTP_404,
|
||||
title=_("Not Found"),
|
||||
description=ex.message)
|
||||
|
||||
|
|
Loading…
Reference in New Issue