Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c5e829

Browse files
committed
Use IOError.
1 parent 2f24258 commit 5c5e829

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/calendar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def monthcalendar(year, month):
146146
key = `year` + month_abbr[month]
147147
try:
148148
return mc_cache[key]
149-
except RuntimeError:
149+
except IOError:
150150
mc_cache[key] = ret = _monthcalendar(year, month)
151151
return ret
152152

0 commit comments

Comments
 (0)