forked from MarseyWorld/MarseyWorld
Remove accidentally sneeded debug code.
We were experiencing errors on prod where is_repost would not have either g or g.db available on request teardown, which would eventually culminate in errors.py:error_500. These haven't reoccurred for nearly 16hrs now, and the test code got caught in a 'sneed' commit. Best to have it gone.master
parent
ad52c49782
commit
3482f97bfb
|
@ -47,8 +47,6 @@ def error_401(e):
|
||||||
|
|
||||||
@app.errorhandler(500)
|
@app.errorhandler(500)
|
||||||
def error_500(e):
|
def error_500(e):
|
||||||
if not g: print("500: not g")
|
|
||||||
if not g.db: print("500: not g.db")
|
|
||||||
g.db.rollback()
|
g.db.rollback()
|
||||||
return error(e)
|
return error(e)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue