mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:56:05 -04:00
Handle the fact that postgres databases can be restarted from under us
This commit is contained in:
parent
865398b4a9
commit
e4c4664d73
3 changed files with 33 additions and 1 deletions
|
@ -39,3 +39,6 @@ class PostgresEngine(object):
|
|||
if isinstance(error, self.module.DatabaseError):
|
||||
return error.pgcode in ["40001", "40P01"]
|
||||
return False
|
||||
|
||||
def is_connection_closed(self, conn):
|
||||
return bool(conn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue