Use KeyError.

This commit is contained in:
Guido van Rossum 1991-12-26 13:03:14 +00:00
parent 5c5e829a5d
commit 4dedbf7197
2 changed files with 2 additions and 2 deletions

View file

@ -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