Fix broken ref to IntegrityError

pull/2684/head
Richard van der Hoff 2017-11-16 16:03:38 +00:00
parent 7ab2b69e18
commit 77a1227870
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ class SQLBaseStore(object):
lock=lock lock=lock
) )
defer.returnValue(result) 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. # presumably we raced with another transaction: let's retry.
logger.warn( logger.warn(
"IntegrityError when upserting into %s; retrying: %s", "IntegrityError when upserting into %s; retrying: %s",