summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfbin/fbin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbin/fbin.py b/fbin/fbin.py
index af35bdb..91fa1c9 100755
--- a/fbin/fbin.py
+++ b/fbin/fbin.py
@@ -207,7 +207,7 @@ def uploaded(hash):
@app.route('/file/<hash:hash>/<path:filename>', endpoint = 'file')
def _file(hash, ext=None, filename=None):
f = get_file(hash)
- if not f:
+ if not f or not f.exists:
abort(404)
return send_file(f.get_path())