]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use IOError.
authorGuido van Rossum <guido@python.org>
Thu, 26 Dec 1991 13:02:59 +0000 (13:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 26 Dec 1991 13:02:59 +0000 (13:02 +0000)
Lib/calendar.py

index 49e8e632e420d694dc5f456db8a89e5e37399bcf..ee16c76110fda973168fa069f5b532ee35e5f35c 100644 (file)
@@ -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