Fix broken ref to IntegrityError

This commit is contained in:
Richard van der Hoff 2017-11-16 16:03:38 +00:00
parent 7ab2b69e18
commit 77a1227870

View file

@ -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",