diff options
author | Guido van Rossum <guido@python.org> | 1991-12-26 13:02:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-26 13:02:59 (GMT) |
commit | 5c5e829a5d23f2cbffd188ebc3688147bc38b2e3 (patch) | |
tree | 66b96d5582e8cebafc99e20c385cedcb8264a5c7 /Lib | |
parent | 2f242582f7db60a1a77b177ee33e746f04670b23 (diff) | |
download | cpython-5c5e829a5d23f2cbffd188ebc3688147bc38b2e3.zip cpython-5c5e829a5d23f2cbffd188ebc3688147bc38b2e3.tar.gz cpython-5c5e829a5d23f2cbffd188ebc3688147bc38b2e3.tar.bz2 |
Use IOError.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/calendar.py | 2 |
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 |