Python3 Updates

This commit is contained in:
rparedis 2022-03-02 15:21:39 +01:00
parent 190a70532a
commit 50164a92c6
7 changed files with 26 additions and 10 deletions

View file

@ -144,7 +144,9 @@ class DEVSException(Exception):
"""
String representation of the exception
"""
return "DEVS Exception: " + str(self.message)
if hasattr(self, "message"):
return "DEVS Exception: " + str(self.message)
return "DEVS Exception: " + str(self.args[0])
class QuickStopException(Exception):
"""