BaseException.message is deprecated in Python 2.6 and gone in 3
diff --git a/elftools/common/utils.py b/elftools/common/utils.py
index e6fc6b6..a2c9edb 100644
--- a/elftools/common/utils.py
+++ b/elftools/common/utils.py
@@ -31,7 +31,7 @@
             stream.seek(stream_pos)
         return struct.parse_stream(stream)
     except ConstructError as e:
-        raise ELFParseError(e.message)
+        raise ELFParseError(str(e))
 
 
 def parse_cstring_from_stream(stream, stream_pos=None):