aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)):