summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-02-05 21:38:23 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-02-05 21:38:23 +0000
commit974b91d9392c25ebea0c8d4539332fa11ad5d711 (patch)
treeff47d02ed84b8057408d5146f28e92b1a7c4eb77 /core/models/caves.py
parente46cbe5d411619133604dc5c8468b09c07923786 (diff)
downloadtroggle-974b91d9392c25ebea0c8d4539332fa11ad5d711.tar.gz
troggle-974b91d9392c25ebea0c8d4539332fa11ad5d711.tar.bz2
troggle-974b91d9392c25ebea0c8d4539332fa11ad5d711.zip
exceptio
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index 5ae4170..b1d9200 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -729,10 +729,11 @@ def GetCaveLookup():
return Gcavelookup
+@transaction.atomic
def update_dataissue(parsercode, message):
try:
DataIssue.objects.update_or_create(parser=parsercode, message=message)
- except DataIssue.DataError:
+ except DataError:
# bollocks, swallow this.
pass
except: