aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-22 12:56:21 +0700
committerstepshal <nessento@openmailbox.org>2016-07-22 12:56:21 +0700
commitb3b8a8d106ecf9dbdb933f4f2a09ec65003b7d05 (patch)
tree8344d54c35cfeb981865d32089bf10110de4c7fd /setuptools/command/easy_install.py
parent0cd550a81c1e18d6bed0830a16dd9f1a37058aaf (diff)
downloadexternal_python_setuptools-b3b8a8d106ecf9dbdb933f4f2a09ec65003b7d05.tar.gz
external_python_setuptools-b3b8a8d106ecf9dbdb933f4f2a09ec65003b7d05.tar.bz2
external_python_setuptools-b3b8a8d106ecf9dbdb933f4f2a09ec65003b7d05.zip
Use 'except Exception:' instead of 'except:'.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 5ce529b2..468b9be7 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -431,7 +431,7 @@ class easy_install(Command):
"""
try:
pid = os.getpid()
- except:
+ except Exception:
pid = random.randint(0, sys.maxsize)
return os.path.join(self.install_dir, "test-easy-install-%s" % pid)
@@ -929,7 +929,7 @@ class easy_install(Command):
destination,
fix_zipimporter_caches=new_dist_is_zipped,
)
- except:
+ except Exception:
update_dist_caches(destination, fix_zipimporter_caches=False)
raise