Error with IP Plugin : object has no attribute #1528

This commit is contained in:
nicolargo 2019-08-11 10:06:22 +02:00
parent 370a002b1d
commit 5c195a1c6c

View File

@ -61,7 +61,7 @@ class Plugin(GlancesPlugin):
self.display_curse = True self.display_curse = True
# Get the public IP address once (not for each refresh) # 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() self.public_address = PublicIpAddress().get()
@GlancesPlugin._check_decorator @GlancesPlugin._check_decorator
@ -114,7 +114,7 @@ class Plugin(GlancesPlugin):
ret = [] ret = []
# Only process if stats exist and display plugin enable... # 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 return ret
# Build the string message # Build the string message