Commit a13548f7 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'p1' into 'master'

Ignore all exceptions when closing the session

See merge request !10
parents de5fe7c4 5cb2f31f
Pipeline #21772 passed with stages
in 16 minutes and 24 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