feat(chalice): return cursor after re-creation

This commit is contained in:
Taha Yassine Kraiem 2022-11-10 16:40:39 +01:00
parent 80da600ab8
commit 42c020e562

View file

@ -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():