From 3e3f1c371c0f36b252315d07e788c37554170d89 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 18 Sep 2019 18:11:12 -0700 Subject: webface: fix duration_seconds parsing --- python/fatcat_web/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3