Use IOError.

This commit is contained in:
Guido van Rossum 1991-12-26 13:02:59 +00:00
parent 2f242582f7
commit 5c5e829a5d
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ def monthcalendar(year, month):
key = `year` + month_abbr[month]
try:
return mc_cache[key]
except RuntimeError:
except IOError:
mc_cache[key] = ret = _monthcalendar(year, month)
return ret