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:
caihui 2021-06-10 14:56:31 +08:00
parent e02a492817
commit 22d20337a8
1 changed files with 1 additions and 1 deletions

View File

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