diff --git a/pypresence/exceptions.py b/pypresence/exceptions.py index 4e7360b..0c80bb1 100644 --- a/pypresence/exceptions.py +++ b/pypresence/exceptions.py @@ -1,6 +1,6 @@ class PyPresenceException(Exception): def __init__(self, message=None): - message = 'An error has occured within PyPresence' if message is None + if message is None: message = 'An error has occured within PyPresence' super().__init__(message) class InvalidID(PyPresenceException):