aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-05-29 12:50:06 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-05-29 12:50:06 +0100
commitd551281af6ab5a964bfa1b8062d0f4d17e28f051 (patch)
tree8b77aa0e2842995a5cfc1f99d20b564f669bb343
parent996e8dc59d38ad5bc0c60bb03d2ddcac854f96fd (diff)
downloadsos-d551281af6ab5a964bfa1b8062d0f4d17e28f051.tar.gz
[kernel] fix except syntax
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/kernel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py
index 8e9238cf..4ea3af15 100644
--- a/sos/plugins/kernel.py
+++ b/sos/plugins/kernel.py
@@ -30,7 +30,7 @@ class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
out = []
try:
prog_data = json.load(open(prog_file))
- except Exception, e:
+ except Exception as e:
self._log_info("Could not parse bpftool prog list as JSON: %s" % e)
return out
for item in range(len(prog_data)):
@@ -41,7 +41,7 @@ class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
out = []
try:
map_data = json.load(open(map_file))
- except Exception, e:
+ except Exception as e:
self._log_info("Could not parse bpftool map list as JSON: %s" % e)
return out
for item in range(len(map_data)):