mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-21 08:11:39 +03:00
Error with IP Plugin : object has no attribute #1528
This commit is contained in:
parent
370a002b1d
commit
5c195a1c6c
@ -61,7 +61,7 @@ class Plugin(GlancesPlugin):
|
||||
self.display_curse = True
|
||||
|
||||
# Get the public IP address once (not for each refresh)
|
||||
if not self.is_disable():
|
||||
if not self.is_disable() and not import_error_tag:
|
||||
self.public_address = PublicIpAddress().get()
|
||||
|
||||
@GlancesPlugin._check_decorator
|
||||
@ -114,7 +114,7 @@ class Plugin(GlancesPlugin):
|
||||
ret = []
|
||||
|
||||
# Only process if stats exist and display plugin enable...
|
||||
if not self.stats or self.is_disable():
|
||||
if not self.stats or self.is_disable() or import_error_tag:
|
||||
return ret
|
||||
|
||||
# Build the string message
|
||||
|
Loading…
Reference in New Issue
Block a user