mirror of https://github.com/python/cpython.git
Use IOError.
This commit is contained in:
parent
2f242582f7
commit
5c5e829a5d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue