2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-27 22:01:47 +00:00

Message while database reset ongoing.. untested

This commit is contained in:
2024-08-11 15:43:41 +03:00
parent 74ce8894d2
commit aaabcafcfe
2 changed files with 16 additions and 2 deletions

View File

@@ -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: