mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-24 01:35:23 +03:00
Correct issue on Ports plugin if args is not set
This commit is contained in:
parent
a340a5e5e1
commit
712b3db48d
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user