summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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