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:51:53 +0100
commit5dadb7bd485e325a2f06badfe88dd8e6c2e1c532 (patch)
tree13966870fed2d9494ebf46c92f864b438b1ebfae
parent2c04f56675b36f59ab4d4cb455efeb7d71badb74 (diff)
downloadsos-5dadb7bd485e325a2f06badfe88dd8e6c2e1c532.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)):