diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-06-24 22:06:02 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-06-24 22:06:02 +0300 |
commit | 2bd70c4fe887b03d558a646c30677046d83c10c0 (patch) | |
tree | 3bcc09f0aba5f866a60ec8e17a8f0bd4019a3998 /obnamlib/plugins/fuse_plugin.py | |
parent | 052980a825734212bc979e5b011399dd53f2153b (diff) | |
download | obnam-2bd70c4fe887b03d558a646c30677046d83c10c0.tar.gz |
Fix: avoid bare "except:" statements
Diffstat (limited to 'obnamlib/plugins/fuse_plugin.py')
-rw-r--r-- | obnamlib/plugins/fuse_plugin.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py index 97025dfb..3e505d0f 100644 --- a/obnamlib/plugins/fuse_plugin.py +++ b/obnamlib/plugins/fuse_plugin.py @@ -104,7 +104,7 @@ class ObnamFuseFile(object): try: self.metadata = self.fuse_fs.get_metadata_in_generation(path) - except: + except BaseException: logging.error('Unexpected exception', exc_info=True) raise @@ -342,7 +342,7 @@ class ObnamFuse(fuse.Fuse): return self.get_stat_in_generation(path) except obnamlib.ObnamError: raise IOError(errno.ENOENT, 'No such file or directory') - except: + except BaseException: logging.error('Unexpected exception', exc_info=True) raise @@ -360,7 +360,7 @@ class ObnamFuse(fuse.Fuse): return [fuse.Direntry(name) for name in ['.', '..'] + listdir] except obnamlib.ObnamError: raise IOError(errno.EINVAL, 'Invalid argument') - except: + except BaseException: logging.error('Unexpected exception', exc_info=True) raise @@ -376,7 +376,7 @@ class ObnamFuse(fuse.Fuse): raise IOError(errno.EINVAL, 'Invalid argument') except obnamlib.ObnamError: raise IOError(errno.ENOENT, 'No such file or directory') - except: + except BaseException: logging.error('Unexpected exception', exc_info=True) raise @@ -449,7 +449,7 @@ class ObnamFuse(fuse.Fuse): return value except obnamlib.ObnamError: raise IOError(errno.ENOENT, 'No such file or directory') - except: + except BaseException: logging.error('Unexpected exception', exc_info=True) raise @@ -480,7 +480,7 @@ class ObnamFuse(fuse.Fuse): return name_blob.split('\0')[:-1] except obnamlib.ObnamError: raise IOError(errno.ENOENT, 'No such file or directory') - except: + except BaseException: logging.error('Unexpected exception', exc_info=True) raise |