aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-07-02 12:09:52 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-07-02 12:09:52 +0100
commit1834e147d1ff3c5e02c085316ec3a465c0288f7b (patch)
tree34968530332a593116fa0106e0a9e4a05d56c605
parent9a128b957c25a5c5ac3fa2b8afa53777f9f840c2 (diff)
downloadsos-1834e147d1ff3c5e02c085316ec3a465c0288f7b.tar.gz
[plugin] python3 exception lists must be tuples
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 3785d610..63a65a68 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -292,7 +292,7 @@ class Plugin(object):
try:
st = os.lstat(srcpath)
- except OSError, IOError:
+ except (OSError, IOError):
self.log_info("failed to stat '%s'" % srcpath)
return