summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-30 18:45:55 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-30 18:45:55 -0700
commit388778627cc599af8bd50085a5862efa38e5c054 (patch)
treea2ea76e01d67390e117f2a38a6e8e1d58b9ae262 /python
parent426308d44baf9165a2ac8adf4d3573154a5e7f46 (diff)
downloadfatcat-388778627cc599af8bd50085a5862efa38e5c054.tar.gz
fatcat-388778627cc599af8bd50085a5862efa38e5c054.zip
minor lint fixes
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/routes.py3
-rw-r--r--python/tests/web_coverage.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index bcfa133b..74805c69 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -1,6 +1,5 @@
import os
-import sys
import json
from flask import render_template, make_response, send_from_directory, \
request, url_for, abort, redirect, jsonify, session, flash, Response
@@ -658,7 +657,7 @@ def release_save(ident):
Config.KAFKA_SAVEPAPERNOW_TOPIC,
json.dumps(msg, sort_keys=True),
)
- except Exception as e:
+ except:
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:
diff --git a/python/tests/web_coverage.py b/python/tests/web_coverage.py
index 4407934f..47123686 100644
--- a/python/tests/web_coverage.py
+++ b/python/tests/web_coverage.py
@@ -142,7 +142,6 @@ def test_coverage_search(app, mocker):
},
}
-
es_raw = mocker.patch('elasticsearch.connection.Urllib3HttpConnection.perform_request')
es_raw.side_effect = [
# counts summary