From: Guido van Rossum Date: Thu, 26 Dec 1991 13:02:59 +0000 (+0000) Subject: Use IOError. X-Git-Tag: v0.9.8~663 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c5e829a5d23f2cbffd188ebc3688147bc38b2e3;p=thirdparty%2FPython%2Fcpython.git Use IOError. --- 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