mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use IOError.
This commit is contained in:
parent
2f242582f7
commit
5c5e829a5d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue