summaryrefslogtreecommitdiffstats
path: root/Mac/BuildScript
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-20 07:33:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-20 07:33:40 (GMT)
commitba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23 (patch)
tree84491ee8c5be973ab45551b7319bb71416946827 /Mac/BuildScript
parent492f0277933fd5714762a99ec99fd7f97d99866a (diff)
downloadcpython-ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23.zip
cpython-ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23.tar.gz
cpython-ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23.tar.bz2
Issue #16261: Converted some bare except statements to except statements
with specified exception type. Original patch by Ramchandra Apte.
Diffstat (limited to 'Mac/BuildScript')
-rwxr-xr-xMac/BuildScript/build-installer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index 8728289..47cbe3d 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -572,7 +572,7 @@ def getTclTkVersion(configfile, versionline):
"""
try:
f = open(configfile, "r")
- except:
+ except OSError:
fatal("Framework configuration file not found: %s" % configfile)
for l in f:
@@ -814,7 +814,7 @@ def downloadURL(url, fname):
except:
try:
os.unlink(fname)
- except:
+ except OSError:
pass
def verifyThirdPartyFile(url, checksum, fname):