diff --git a/Lib/mailcap.py b/Lib/mailcap.py index 6f1c301c40a..c864852e064 100644 --- a/Lib/mailcap.py +++ b/Lib/mailcap.py @@ -20,7 +20,7 @@ def getcaps(): for mailcap in listmailcapfiles(): try: fp = open(mailcap, 'r') - except: + except IOError: continue morecaps = readmailcapfile(fp) fp.close()