Do not log HTTPException occurrences
This commit is contained in:
@@ -1044,7 +1044,6 @@ class Microdot():
|
|||||||
else:
|
else:
|
||||||
res = 'Not found', f
|
res = 'Not found', f
|
||||||
except HTTPException as exc:
|
except HTTPException as exc:
|
||||||
print_exception(exc)
|
|
||||||
if exc.status_code in self.error_handlers:
|
if exc.status_code in self.error_handlers:
|
||||||
res = self.error_handlers[exc.status_code](req)
|
res = self.error_handlers[exc.status_code](req)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -386,7 +386,6 @@ class Microdot(BaseMicrodot):
|
|||||||
else:
|
else:
|
||||||
res = 'Not found', f
|
res = 'Not found', f
|
||||||
except HTTPException as exc:
|
except HTTPException as exc:
|
||||||
print_exception(exc)
|
|
||||||
if exc.status_code in self.error_handlers:
|
if exc.status_code in self.error_handlers:
|
||||||
res = self.error_handlers[exc.status_code](req)
|
res = self.error_handlers[exc.status_code](req)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user