Skip to content

Commit 7ad1c25

Browse files
style: replace bare except with except Exception
1 parent de233e8 commit 7ad1c25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fri/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def download(dir):
362362

363363
try:
364364
return send_from_directory(directory_name, safe_path, as_attachment=True)
365-
except:
365+
except Exception:
366366
resp = jsonify({'message': 'file not found'})
367367
resp.status_code = 400
368368
return resp

0 commit comments

Comments
 (0)