Total Complexity | 2 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from werkzeug.exceptions import HTTPException |
||
2 | |||
3 | |||
4 | def http_exception_handler(e: HTTPException): |
||
5 | return '', e.code |
||
6 | |||
7 | |||
8 | def broad_exception_handler(e: Exception): |
||
9 | return '', 500 |
||
10 |