Don't use the Exception.message attribute that was deprecated in
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 12 Oct 2008 04:31:07 +0000 (04:31 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 12 Oct 2008 04:31:07 +0000 (04:31 +0000)
Python 2.6; just str() the exception instead.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3679 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Job.py

index 515f7be9bcf4b9370b7f8834e879d962a3b0be2f..f83e0ca7604c3cc2caf950160d80fd189c28301b 100644 (file)
@@ -284,8 +284,7 @@ else:
                         e.args[0]
                     SCons.Warnings.warn(SCons.Warnings.StackSizeWarning, msg)
             except ValueError, e:
-                msg = "Setting stack size failed:\n    " + \
-                    e.message
+                msg = "Setting stack size failed:\n    " + str(e)
                 SCons.Warnings.warn(SCons.Warnings.StackSizeWarning, msg)
 
             # Create worker threads