nanterre: catch AssertionError

This commit is contained in:
Benjamin Dauvergne 2017-10-21 22:18:59 +02:00
parent 0aee098b42
commit 0fc8daac52
1 changed files with 1 additions and 1 deletions

View File

@ -1822,7 +1822,7 @@ class DoublonMixin(object):
assert len(p) == 2
p = utils.pair_sort(*p)
return self.get_queryset().get(first_id=p[0], second_id=p[1])
except (ValueError, TypeError, models.Duplicate.DoesNotExist):
except (AssertionError, ValueError, TypeError, models.Duplicate.DoesNotExist):
return None