Python3 Updates
This commit is contained in:
parent
190a70532a
commit
50164a92c6
7 changed files with 26 additions and 10 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue