aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-03 19:59:52 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-03 19:59:52 -0700
commit4ded79a755c65f617a26010cfd3deebb4c1bde72 (patch)
tree51a8a160e5e73181cdc4399b918a98fcaa81ea84 /python/fatcat_web
parent2f6acbd81618803ef2400bb8a0a5c3684f5641a2 (diff)
downloadfatcat-4ded79a755c65f617a26010cfd3deebb4c1bde72.tar.gz
fatcat-4ded79a755c65f617a26010cfd3deebb4c1bde72.zip
fix exception log var names
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/routes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 7d7f3feb..8e07aff0 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -516,7 +516,7 @@ def stats_page():
stats = get_elastic_entity_stats()
stats.update(get_changelog_stats())
except Exception as ae:
- app.log.error(e)
+ app.log.error(ae)
abort(503)
return render_template('stats.html', stats=stats)
@@ -529,7 +529,7 @@ def stats_json():
stats = get_elastic_entity_stats()
stats.update(get_changelog_stats())
except Exception as ae:
- app.log.error(e)
+ app.log.error(ae)
abort(503)
return jsonify(stats)
@@ -539,7 +539,7 @@ def container_issnl_stats(issnl):
try:
stats = get_elastic_container_stats(issnl)
except Exception as ae:
- app.log.error(e)
+ app.log.error(ae)
abort(503)
return jsonify(stats)