Commit deabdb2c authored by Alexander Pace's avatar Alexander Pace
Browse files

add exception for generic error

parent 5f79a7f9
Pipeline #206291 passed with stages
in 13 minutes and 29 seconds
......@@ -132,7 +132,7 @@ class AutoIncrementModel(models.Model):
super(AutoIncrementModel, self).save(*args, **kwargs)
except IntegrityError as e:
logger.warning("Database integrity error when saving {}. ",
"Incrementing and retrying.".format(self))
setattr(self, self.AUTO_FIELD,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment