From 5c5e829a5d23f2cbffd188ebc3688147bc38b2e3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 26 Dec 1991 13:02:59 +0000 Subject: [PATCH] Use IOError. --- Lib/calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/calendar.py b/Lib/calendar.py index 49e8e632e420..ee16c76110fd 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 -- 2.47.3