From 4ded79a755c65f617a26010cfd3deebb4c1bde72 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Apr 2019 19:59:52 -0700 Subject: fix exception log var names --- python/fatcat_web/routes.py | 6 +++--- 1 file 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) -- cgit v1.2.3