diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-11-30 13:05:52 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-30 13:05:52 +0000 |
commit | 381c42be6df69deca5ef51a8e3de63d3aad940d2 (patch) | |
tree | 4252031cdbd586053ef087518f8b4c57a5e3b74a /giscanner/cachestore.py | |
parent | c081aa011c6ced9e1a9f9aa66cc208ab15484468 (diff) | |
download | gobject-introspection-381c42be6df69deca5ef51a8e3de63d3aad940d2.tar.gz |
Bug 562289 – Race when removing invalid cache
2008-11-30 Johan Dahlin <jdahlin@async.com.br>
Bug 562289 – Race when removing invalid cache
* giscanner/cachestore.py:
ENOENT is mapped to a OSError, not IOError.
svn path=/trunk/; revision=979
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r-- | giscanner/cachestore.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py index bd3d8641..d7d7b4f2 100644 --- a/giscanner/cachestore.py +++ b/giscanner/cachestore.py @@ -68,8 +68,11 @@ class CacheStore(object): # Permission denied if e.errno == errno.EACCES: return + else: + raise + except OSError, e: # File does not exist - elif e.errno == errno.ENOENT: + if e.errno == errno.ENOENT: return else: raise |