# HG changeset patch # User Jeff Hammel # Date 1333388452 25200 # Node ID bb0813966bffb2e6e2a4f7083369a6a6bc770662 # Parent 14556787478cec573f85f7f775c1137f1a40a926 python 2.4 compatability diff -r 14556787478c -r bb0813966bff paint/package.py --- a/paint/package.py Fri Mar 30 16:46:49 2012 -0700 +++ b/paint/package.py Mon Apr 02 10:40:52 2012 -0700 @@ -127,7 +127,7 @@ exception = None try: code = call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=subprocess.PIPE) - except BaseException, exception: + except Exception, exception: pass if code or exception: message = """Failure to generate egg_info @@ -160,7 +160,7 @@ try: egg_info = self._egg_info() - except BaseException, exception: + except Exception, exception: # try to get the package info from a file path = self._path() pkg_info = os.path.join(path, 'PKG-INFO')