Commit 5c5e829a authored by Guido van Rossum's avatar Guido van Rossum

Use IOError.

parent 2f242582
...@@ -146,7 +146,7 @@ def monthcalendar(year, month): ...@@ -146,7 +146,7 @@ def monthcalendar(year, month):
key = `year` + month_abbr[month] key = `year` + month_abbr[month]
try: try:
return mc_cache[key] return mc_cache[key]
except RuntimeError: except IOError:
mc_cache[key] = ret = _monthcalendar(year, month) mc_cache[key] = ret = _monthcalendar(year, month)
return ret return ret
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment