From 00b2699d02850b830836fadf6bffad71aebd3673 Mon Sep 17 00:00:00 2001 From: Mike Terzo Date: Mon, 6 Jun 2016 20:09:36 -0400 Subject: [PATCH] Fix exceptions to assign the exception to a variable (#248) so that the logger can properly use it. --- puppetboard/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppetboard/utils.py b/puppetboard/utils.py index f47cc68..cd9dd99 100644 --- a/puppetboard/utils.py +++ b/puppetboard/utils.py @@ -34,10 +34,10 @@ def get_or_abort(func, *args, **kwargs): except HTTPError as e: log.error(str(e)) abort(e.response.status_code) - except ConnectionError: + except ConnectionError as e: log.error(str(e)) abort(500) - except EmptyResponseError: + except EmptyResponseError as e: log.error(str(e)) abort(204)