Skip to content

Commit

Permalink
Fix missing await statement in AsyncDatabase (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jus-Codin committed Feb 8, 2022
1 parent 7a899fb commit b36030a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replit/database/database.py
Expand Up @@ -77,7 +77,7 @@ async def __aenter__(self) -> "AsyncDatabase":
return self

async def __aexit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
self.sess.close()
await self.sess.close()

async def get(self, key: str) -> str:
"""Return the value for key if key is in the database.
Expand Down

0 comments on commit b36030a

Please sign in to comment.