aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-23 15:31:03 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-23 15:31:05 -0700
commit578ce63bd17df11d3ca7cd1083feebe4b92e457c (patch)
tree306d218688171edd41a768daf65926cd20df5102 /python/fatcat_web/routes.py
parent1b28ba68e3b25a0cded2e88b88134d8d332f8d96 (diff)
downloadfatcat-578ce63bd17df11d3ca7cd1083feebe4b92e457c.tar.gz
fatcat-578ce63bd17df11d3ca7cd1083feebe4b92e457c.zip
simple lint (flake8) fixes over python codebase
These should not have any behavior changes, though a number of exception catches are now more general, and there may be long-tail exceptions getting thrown in these statements.
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 4684f799..2489ac03 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -935,7 +935,7 @@ def create_auth_token():
try:
duration_seconds = int(duration_seconds)
assert duration_seconds >= 1
- except:
+ except (ValueError, AssertionError):
flash("duration_seconds must be a positive non-zero integer")
abort(400)