diff --git a/api/chalicelib/utils/pg_client.py b/api/chalicelib/utils/pg_client.py index 1bfb7aa09..1c4ef8560 100644 --- a/api/chalicelib/utils/pg_client.py +++ b/api/chalicelib/utils/pg_client.py @@ -142,7 +142,7 @@ class PostgresClient: except Exception as error: logging.error("Error while closing cursor for recreation", error) self.cursor = None - self.__enter__() + return self.__enter__() async def init():