commit | 4dedbf7197e679b432fd3f06d8e36a223ae78f00 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Dec 26 13:03:14 1991 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Dec 26 13:03:14 1991 +0000 |
tree | d18cac8c4186f1f3d4279011a42c22471fa51434 | |
parent | 5c5e829a5d23f2cbffd188ebc3688147bc38b2e3 [diff] [blame] |
Use KeyError.
diff --git a/Lib/cmp.py b/Lib/cmp.py index 434caee..32b77fa 100644 --- a/Lib/cmp.py +++ b/Lib/cmp.py
@@ -34,7 +34,7 @@ # cached signatures match return outcome # stale cached signature(s) - except RuntimeError: + except KeyError: # cache miss pass # really compare