Issue #16261: Converted some bare except statements to except statements

with specified exception type.  Original patch by Ramchandra Apte.
This commit is contained in:
Serhiy Storchaka 2015-05-20 10:33:40 +03:00
parent 492f027793
commit ba9ac5b5c4
7 changed files with 13 additions and 13 deletions

View file

@ -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):