2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 00:31:55 +00:00

Catch exception when database reset ongoing

This commit is contained in:
Philip Sargent 2024-08-11 17:02:35 +03:00
parent d57e49b5b2
commit 6e1c83ec6e

View File

@ -51,7 +51,10 @@ class DatabaseResetOngoing(Exception):
"""Exception class for errors while the server is reimporting everything""" """Exception class for errors while the server is reimporting everything"""
def __init__(self, message): 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): def __str__(self):
return f"DatabaseResetOngoing: {self.message}" return f"DatabaseResetOngoing: {self.message}"