diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 18:11:12 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 18:42:26 -0700 |
commit | 3e3f1c371c0f36b252315d07e788c37554170d89 (patch) | |
tree | a4942d8e7585e0a5071276f984eae8903c6ad7c0 | |
parent | a1eebad359f6229fdba5fccef51a5e6d68e6fa88 (diff) | |
download | fatcat-3e3f1c371c0f36b252315d07e788c37554170d89.tar.gz fatcat-3e3f1c371c0f36b252315d07e788c37554170d89.zip |
webface: fix duration_seconds parsing
-rw-r--r-- | python/fatcat_web/routes.py | 2 |
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 |