diff --git a/discordbot/titanembeds/database/__init__.py b/discordbot/titanembeds/database/__init__.py index f9cc2e5..e2f3f6c 100644 --- a/discordbot/titanembeds/database/__init__.py +++ b/discordbot/titanembeds/database/__init__.py @@ -33,12 +33,7 @@ class DatabaseInterface(object): @contextmanager def get_session(self) -> Session: - session = None - while session == None: - try: - session = self._sessionmaker() # type: Session - except: - pass + session = self._sessionmaker() # type: Session try: yield session session.commit()