From: GregNoel Date: Wed, 29 Oct 2008 23:55:16 +0000 (+0000) Subject: exception must be stringified before comparison X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=26a25527a1bec5b4ba17ed3ca9dace3d5a6f65cd;p=scons.git exception must be stringified before comparison git-svn-id: http://scons.tigris.org/svn/scons/trunk@3747 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index 9924ab1c..8fa97cdc 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -142,7 +142,7 @@ class Tool: file.close() return module except ImportError, e: - if e!="No module named %s"%self.name: + if str(e)!="No module named %s"%self.name: raise SCons.Errors.EnvironmentError, e try: import zipimport