From 4dedbf7197e679b432fd3f06d8e36a223ae78f00 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 26 Dec 1991 13:03:14 +0000 Subject: Use KeyError. --- Lib/cmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cmp.py') diff --git a/Lib/cmp.py b/Lib/cmp.py index 434caee06c..32b77fac9b 100644 --- a/Lib/cmp.py +++ b/Lib/cmp.py @@ -34,7 +34,7 @@ def cmp(f1, f2): # Compare two files, use the cache if possible. # cached signatures match return outcome # stale cached signature(s) - except RuntimeError: + except KeyError: # cache miss pass # really compare -- cgit v1.2.1