Commit 5cb2f31f authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Ignore all exceptions when closing the session

parent de5fe7c4
Pipeline #21765 passed with stage
in 20 minutes and 34 seconds
......@@ -35,10 +35,7 @@ class Database(Database):
# which might fail in some conditions, e.g., when this destructor is called during the exit of the python interpreter
self.session.close()
self.session.bind.dispose()
except TypeError:
# ... I can just ignore the according exception...
pass
except AttributeError:
except Exception:
pass
def connect(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment