Fix minor warning about Exception.message being deprecated.
This commit is contained in:
parent
a41a19d14d
commit
ca328a6993
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class SpackError(Exception):
|
|||
Subclasses can be found in the modules they have to do with.
|
||||
"""
|
||||
def __init__(self, message, long_message=None):
|
||||
super(SpackError, self).__init__(message)
|
||||
super(SpackError, self).__init__()
|
||||
self.message = message
|
||||
self.long_message = long_message
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue