diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-05-25 16:30:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-05-25 16:30:09 -0700 |
commit | 7aa19b92f0e7808a341aec8ae17485408dfae68c (patch) | |
tree | baa906e271c6dfd6bd058024a289795916aba4ed /python/fatcat_web | |
parent | a7a3cc1f8de8f38d98cf878282bd26ec4d76771f (diff) | |
download | fatcat-7aa19b92f0e7808a341aec8ae17485408dfae68c.tar.gz fatcat-7aa19b92f0e7808a341aec8ae17485408dfae68c.zip |
small python lint fixes (no behavior change)
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/auth.py | 2 | ||||
-rw-r--r-- | python/fatcat_web/routes.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/auth.py b/python/fatcat_web/auth.py index 74b8e2d6..a1ba1929 100644 --- a/python/fatcat_web/auth.py +++ b/python/fatcat_web/auth.py @@ -104,7 +104,7 @@ def handle_ia_xauth(email, password): if resp.status_code == 401 or (not resp.json().get('success')): try: flash("Internet Archive email/password didn't match: {}".format(resp.json()['values']['reason'])) - except: + except Exception: app.log.warning("IA XAuth fail: {}".format(resp.content)) return render_template('auth_ia_login.html', email=email), resp.status_code elif resp.status_code != 200: diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 7cf1f854..1a573006 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -658,7 +658,7 @@ def release_save(ident): Config.KAFKA_SAVEPAPERNOW_TOPIC, json.dumps(msg, sort_keys=True), ) - except: + except Exception: return render_template('release_save.html', entity=release, form=form, spn_status='kafka-error'), 500 return render_template('release_save.html', entity=release, form=form, spn_status='success'), 200 elif form.errors: |