diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2014-08-10 17:52:46 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-08-10 17:52:46 -0700 |
commit | ca328a69935e5ed315caaec6d1435e4924e6ee63 (patch) | |
tree | baf2fa091a78366d3f50fe362e25e7e3315c1481 | |
parent | a41a19d14db7108c141e5737c5acdbbdda201af8 (diff) | |
download | spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.tar.gz spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.tar.bz2 spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.tar.xz spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.zip |
Fix minor warning about Exception.message being deprecated.
-rw-r--r-- | lib/spack/spack/error.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/error.py b/lib/spack/spack/error.py index 40e0e75fdb..8bcbd83c28 100644 --- a/lib/spack/spack/error.py +++ b/lib/spack/spack/error.py @@ -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 |