mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Reference the correct exception type
This commit is contained in:
@@ -126,7 +126,7 @@ class CachedDocumentManager(models.Manager):
|
||||
if int(error) in ROLLBACK_ERRORS:
|
||||
try:
|
||||
doc = self.get(pk=doc.pk)
|
||||
except self.DoesNotExist:
|
||||
except self.model.DoesNotExist:
|
||||
doc.save()
|
||||
else:
|
||||
if not int(error) in IGNORED_ERRORS:
|
||||
|
||||
Reference in New Issue
Block a user