2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 16:51:54 +00:00

suppress DataError exception

This commit is contained in:
Philip Sargent 2024-02-05 21:32:34 +00:00
parent c518fbc5af
commit f26c9d1ff2

View File

@ -732,6 +732,9 @@ def GetCaveLookup():
def update_dataissue(parsercode, message):
try:
DataIssue.objects.update_or_create(parser=parsercode, message=message)
except DataIssue.DataError:
# bollocks, swallow this.
pass
except:
# Complete bollocks, but MariaDB barfs when it shouldn't : Django 3.2
issues = DataIssue.objects.filter(parser=parsercode, message=message)