diff --git a/app/lib/redshift_database.py b/app/lib/redshift_database.py index 6c287520a91e557ca3acc31d0864da53f219be7d..5ad1b78109d285a4b174650c0fc5841f67052581 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()