From 5f3ded950e4d8146e2014a039a1cc7d2330b654f Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 19 Dec 2017 16:19:16 -0500 Subject: [PATCH] Remove e.message from exception handling --- app/lib/redshift_database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/redshift_database.py b/app/lib/redshift_database.py index 6c28752..5ad1b78 100644 --- a/app/lib/redshift_database.py +++ b/app/lib/redshift_database.py @@ -46,12 +46,12 @@ class RedshiftWrapper(object): break except psycopg2.ProgrammingError as e: self.current_app.logger.info( - 'ProgrammingError while executing redshift db call: {}'.format(e.message) + 'ProgrammingError while executing redshift db call: {}'.format(e) ) self.db.rollback() except (psycopg2.InterfaceError, psycopg2.OperationalError) as e: self.current_app.logger.info( - 'Interface or Operational Error while executing redshift db call: {}'.format(e.message) + 'Interface or Operational Error while executing redshift db call: {}'.format(e) ) self.db = self.make_connection() cursor = self.get_cursor() -- GitLab