summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-08-10 17:52:46 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-08-10 17:52:46 -0700
commitca328a69935e5ed315caaec6d1435e4924e6ee63 (patch)
treebaf2fa091a78366d3f50fe362e25e7e3315c1481 /lib
parenta41a19d14db7108c141e5737c5acdbbdda201af8 (diff)
downloadspack-ca328a69935e5ed315caaec6d1435e4924e6ee63.tar.gz
spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.tar.bz2
spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.tar.xz
spack-ca328a69935e5ed315caaec6d1435e4924e6ee63.zip
Fix minor warning about Exception.message being deprecated.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/error.py3
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