Kaydet (Commit) 776d39e2 authored tarafından Fred Drake's avatar Fred Drake

Opening a file for reading can raise IOError, so only catch that.

üst 1b7e0795
......@@ -20,7 +20,7 @@ def getcaps():
for mailcap in listmailcapfiles():
try:
fp = open(mailcap, 'r')
except:
except IOError:
continue
morecaps = readmailcapfile(fp)
fp.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment