From 712b3db48d87efad0eb41c7395d6637899202168 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 25 Jun 2016 17:00:36 +0200 Subject: [PATCH] Correct issue on Ports plugin if args is not set --- glances/plugins/glances_ports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/glances_ports.py b/glances/plugins/glances_ports.py index 515771ba..ecff20dc 100644 --- a/glances/plugins/glances_ports.py +++ b/glances/plugins/glances_ports.py @@ -66,7 +66,7 @@ class Plugin(GlancesPlugin): def update(self): """Update the ports list.""" - if self.args.disable_ports: + if self.args is None or self.args.disable_ports: return {} if self.input_method == 'local':