Do not log HTTPException occurrences

This commit is contained in:
Miguel Grinberg
2022-09-19 23:50:04 +01:00
parent c81a2649c5
commit cbefb6bf3a
2 changed files with 0 additions and 2 deletions

View File

@@ -1044,7 +1044,6 @@ class Microdot():
else:
res = 'Not found', f
except HTTPException as exc:
print_exception(exc)
if exc.status_code in self.error_handlers:
res = self.error_handlers[exc.status_code](req)
else:

View File

@@ -386,7 +386,6 @@ class Microdot(BaseMicrodot):
else:
res = 'Not found', f
except HTTPException as exc:
print_exception(exc)
if exc.status_code in self.error_handlers:
res = self.error_handlers[exc.status_code](req)
else: