summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/calendar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py
index 49e8e63..ee16c76 100644
--- a/Lib/calendar.py
+++ b/Lib/calendar.py
@@ -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