mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-21 14:51:51 +00:00
Catch exception when database reset ongoing
This commit is contained in:
parent
d57e49b5b2
commit
6e1c83ec6e
@ -51,7 +51,10 @@ class DatabaseResetOngoing(Exception):
|
||||
"""Exception class for errors while the server is reimporting everything"""
|
||||
|
||||
def __init__(self, message):
|
||||
self.message = message
|
||||
if message:
|
||||
self.message = message
|
||||
else:
|
||||
self.message = f"Expo Database re-import ongoing on server.\nPlease wait 7 minutes.\n If still not working, contact a nerd."
|
||||
|
||||
def __str__(self):
|
||||
return f"DatabaseResetOngoing: {self.message}"
|
||||
|
Loading…
Reference in New Issue
Block a user