summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-08-29 12:36:57 +0300
committerLars Wirzenius <liw@liw.fi>2015-08-29 12:36:57 +0300
commit617da1a9985b59b1654d9a0f92bb9facc2ff8be6 (patch)
tree16473794c19200cb68c75082e5293cff6647de85
parent19a1e06fef727d074ad917ff0d37f5d83deeb44e (diff)
downloadobnam-617da1a9985b59b1654d9a0f92bb9facc2ff8be6.tar.gz
Disable locally a warning about a broad exception
-rw-r--r--obnamlib/plugins/restore_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index 97485ece..6c83d474 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -230,7 +230,7 @@ class RestorePlugin(obnamlib.ObnamPlugin):
except obnamlib.SetMetadataError as e:
self.app.ts.error(str(e))
self.errors = True
- except Exception, e:
+ except Exception, e: # pylint: disable=broad-except
# Reaching this code path means we've hit a bug, so we log
# a full traceback.
msg = "Failed to restore %s:" % (pathname,)