summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-18 18:11:12 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-18 18:42:26 -0700
commit3e3f1c371c0f36b252315d07e788c37554170d89 (patch)
treea4942d8e7585e0a5071276f984eae8903c6ad7c0 /python/fatcat_web
parenta1eebad359f6229fdba5fccef51a5e6d68e6fa88 (diff)
downloadfatcat-3e3f1c371c0f36b252315d07e788c37554170d89.tar.gz
fatcat-3e3f1c371c0f36b252315d07e788c37554170d89.zip
webface: fix duration_seconds parsing
Diffstat (limited to 'python/fatcat_web')
-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 e741f3bf..036dcea0 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -846,7 +846,7 @@ def create_auth_token():
app.csrf.protect()
duration_seconds = request.form.get('duration_seconds', None)
- if duration_seconds != None:
+ if duration_seconds:
try:
duration_seconds = int(duration_seconds)
assert duration_seconds >= 1