aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-07-24 10:11:37 +0000
committerMartin Czygan <martin@archive.org>2020-07-24 10:11:37 +0000
commit8b00843af1366cf019c896057706ace4afff27ba (patch)
tree86fc58bf26f07e272aa27e989f3ab6b4cfef2090 /python/fatcat_web/routes.py
parent2170e5ff46dfb2bba9bf26196de3c3774c16cd4a (diff)
parentfc93f35996cab23984d9a45f1a411b8776e437bf (diff)
downloadfatcat-8b00843af1366cf019c896057706ace4afff27ba.tar.gz
fatcat-8b00843af1366cf019c896057706ace4afff27ba.zip
Merge branch 'bnewbold-more-lint-fixes' into 'master'
more lint fixes See merge request webgroup/fatcat!69
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)