Fix traceback not being shown on general exceptions
This commit is contained in:
parent
13040d559b
commit
fc5c33c918
1 changed files with 6 additions and 4 deletions
|
@ -4,6 +4,7 @@ import json
|
|||
import mimetypes
|
||||
import os
|
||||
import random
|
||||
import traceback
|
||||
import urllib.parse
|
||||
import warnings
|
||||
import zipstream
|
||||
|
@ -91,6 +92,7 @@ def P_wrapper(function):
|
|||
flask.abort(response)
|
||||
|
||||
except Exception as e:
|
||||
traceback.print_exc()
|
||||
if response_type == 'html':
|
||||
flask.abort(500)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue