Correct issue on Ports plugin if args is not set

This commit is contained in:
nicolargo 2016-06-25 17:00:36 +02:00
parent a340a5e5e1
commit 712b3db48d

View File

@ -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':