✨
This commit is contained in:
@@ -3,7 +3,7 @@ class NoToken(Exception):
|
||||
self.message = "No discord bot token has been set in the .env file"
|
||||
super().__init__(self.message)
|
||||
|
||||
class MongoCannotConnect(Exception):
|
||||
def __init__(self) -> None:
|
||||
self.message = "Cannot connect to the mongo client"
|
||||
class CannotConnectToService(Exception):
|
||||
def __init__(self, service: str) -> None:
|
||||
self.message = f"Cannot connect to {service}"
|
||||
super().__init__(self.message)
|
||||
Reference in New Issue
Block a user