mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-21 16:22:03 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user