mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-20 04:46:09 -04:00
fix bug where error 404 was 500ing
This commit is contained in:
parent
1f0fd734fa
commit
684333776c
@ -87,7 +87,7 @@ def download():
|
||||
@app.errorhandler(404)
|
||||
def page_not_found(e):
|
||||
global REQUEST_OTHER
|
||||
add_request(REQUEST_OTHER)
|
||||
add_request(REQUEST_OTHER, request.path)
|
||||
return render_template_string(open('{0}/404.html'.format(onionshare_dir)).read())
|
||||
|
||||
def get_platform():
|
||||
|
Loading…
x
Reference in New Issue
Block a user