From aaabcafcfef92a43a9099dcd2f592f85eeb5283c Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 11 Aug 2024 15:43:41 +0300 Subject: Message while database reset ongoing.. untested --- core/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/utils.py') 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: -- cgit v1.2.3