mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-01 04:34:27 -04:00
fix bug where error 404 was 500ing
This commit is contained in:
parent
1f0fd734fa
commit
684333776c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue