diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-16 16:03:38 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-16 16:03:38 +0000 |
commit | 77a122787022c302f0b2abcb63bd2f7d8514d692 (patch) | |
tree | a8d550b51e468e2d316185cb069b76880713317a /synapse | |
parent | Avoid locking `pushers` table on upsert (diff) | |
download | synapse-77a122787022c302f0b2abcb63bd2f7d8514d692.tar.xz |
Fix broken ref to IntegrityError
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 1582a58966..e6eefdd6fe 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -503,7 +503,7 @@ class SQLBaseStore(object): lock=lock ) defer.returnValue(result) - except self.database_engine.IntegrityError as e: + except self.database_engine.module.IntegrityError as e: # presumably we raced with another transaction: let's retry. logger.warn( "IntegrityError when upserting into %s; retrying: %s", |