summaryrefslogtreecommitdiffstats
path: root/core/utils.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-08-11 15:43:41 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2024-08-11 15:43:41 +0300
commitaaabcafcfef92a43a9099dcd2f592f85eeb5283c (patch)
tree42d7b26f02dc14649b0cb61d337e7cb42125300b /core/utils.py
parent74ce8894d2c0fa154f58b2dc2afb6e3332120284 (diff)
downloadtroggle-aaabcafcfef92a43a9099dcd2f592f85eeb5283c.tar.gz
troggle-aaabcafcfef92a43a9099dcd2f592f85eeb5283c.tar.bz2
troggle-aaabcafcfef92a43a9099dcd2f592f85eeb5283c.zip
Message while database reset ongoing.. untested
Diffstat (limited to 'core/utils.py')
-rw-r--r--core/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/utils.py b/core/utils.py
index 39233d3..f49ef26 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -47,7 +47,14 @@ sha = hashlib.new('sha256')
throw = 35.0
+class DatabaseResetOngoing(Exception):
+ """Exception class for errors while the server is reimporting everything"""
+ def __init__(self, message):
+ self.message = message
+
+ def __str__(self):
+ return f"DatabaseResetOngoing: {self.message}"
# This is module-level executable. This is a Bad Thing. Especially when it touches the file system.
try: