Fix in error(500)
This commit is contained in:
parent
9332c4b673
commit
d8d803e85a
1 changed files with 2 additions and 0 deletions
|
|
@ -177,10 +177,12 @@ if config.debug==False:
|
|||
@app.error(404)
|
||||
def error404(error):
|
||||
return 'Error: page not found'
|
||||
"""
|
||||
else:
|
||||
@app.error(500)
|
||||
def error500(error):
|
||||
return error
|
||||
"""
|
||||
|
||||
set_timezone()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue