Reference the correct exception type

This commit is contained in:
2011-10-08 18:25:41 +01:00
parent 57fe9323b4
commit 05a82b5eb1

View File

@@ -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: