summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-02-05 21:32:34 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-02-05 21:32:34 +0000
commitf26c9d1ff2c55fc5b9a8c0a14b564bf90198881a (patch)
tree6c626a8dc3267e34745f336dedf16fe8f42c374f /core/models/caves.py
parentc518fbc5af84b3ba00b3fa7161e053bbc7984da3 (diff)
downloadtroggle-f26c9d1ff2c55fc5b9a8c0a14b564bf90198881a.tar.gz
troggle-f26c9d1ff2c55fc5b9a8c0a14b564bf90198881a.tar.bz2
troggle-f26c9d1ff2c55fc5b9a8c0a14b564bf90198881a.zip
suppress DataError exception
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index 84ce88e..7220ee2 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -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)