mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-03-30 06:29:49 +01:00
Catch exception when database reset ongoing
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user