diff options
Diffstat (limited to 'Lib/dircache.py')
-rw-r--r-- | Lib/dircache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dircache.py b/Lib/dircache.py index 1eebbbc61d..9cdbc70009 100644 --- a/Lib/dircache.py +++ b/Lib/dircache.py @@ -13,7 +13,7 @@ def listdir(path): # List directory contents, using cache try: cached_mtime, list = cache[path] del cache[path] - except RuntimeError: + except KeyError: cached_mtime, list = -1, [] try: mtime = posix.stat(path)[8] |