summaryrefslogtreecommitdiffstats
path: root/core/models
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-13 22:27:01 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-13 22:27:01 +0100
commitdaf58e9e45b5c2d94cbdcd00d9883cfa6b01c6dd (patch)
treecd133a50d9a0fba265b6b07b6ff66cf01cce655a /core/models
parent2467065ac35e17938750f1d977ecf799f529ee07 (diff)
downloadtroggle-daf58e9e45b5c2d94cbdcd00d9883cfa6b01c6dd.tar.gz
troggle-daf58e9e45b5c2d94cbdcd00d9883cfa6b01c6dd.tar.bz2
troggle-daf58e9e45b5c2d94cbdcd00d9883cfa6b01c6dd.zip
replace assert() with message logging
Diffstat (limited to 'core/models')
-rw-r--r--core/models/caves.py1
-rw-r--r--core/models/troggle.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index be44e8f..edaae9a 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -1,7 +1,6 @@
import string
import os
import datetime
-import logging
import re
import json
from subprocess import call
diff --git a/core/models/troggle.py b/core/models/troggle.py
index cf32893..f1f10be 100644
--- a/core/models/troggle.py
+++ b/core/models/troggle.py
@@ -1,7 +1,6 @@
import string
import os
import datetime
-import logging
import re
import resource
from subprocess import call
@@ -51,7 +50,7 @@ class DataIssue(TroggleModel):
This is a use of the NOTIFICATION pattern:
https://martinfowler.com/eaaDev/Notification.html
- And we need to use it to replace all assertions in the code too:
+ We have replaced all assertions in the code with messages and local fix-ups or skips:
https://martinfowler.com/articles/replaceThrowWithNotification.html
"""
date = models.DateTimeField(auto_now_add=True, blank=True)