From 5c195a1c6c5d2a3100d8a01dbe4bebf7d4b50acf Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 11 Aug 2019 10:06:22 +0200 Subject: [PATCH] Error with IP Plugin : object has no attribute #1528 --- glances/plugins/glances_ip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glances/plugins/glances_ip.py b/glances/plugins/glances_ip.py index 540826b8..732d5c57 100644 --- a/glances/plugins/glances_ip.py +++ b/glances/plugins/glances_ip.py @@ -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