fix bug where error 404 was 500ing

This commit is contained in:
Micah Lee 2014-06-13 00:16:22 -04:00
parent 1f0fd734fa
commit 684333776c

View File

@ -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():