Passed
Push — master ( b8824f...085104 )
by Mingyu
01:01
created

app.hooks.error   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Functions

Rating   Name   Duplication   Size   Complexity  
A http_exception_handler() 0 2 1
A broad_exception_handler() 0 2 1
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