Fix minor warning about Exception.message being deprecated.

This commit is contained in:
Todd Gamblin 2014-08-10 17:52:46 -07:00
parent a41a19d14d
commit ca328a6993

View file

@ -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