diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-06-14 06:34:55 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-06-14 10:00:20 +0000 |
commit | ac0807e55644020c877329d3bc05adc26ce76e7f (patch) | |
tree | 9386f6e4c8bdf5247c859b141281cb9c75fcb2cd /resources/tools/telemetry/bundle_vpp.py | |
parent | a08e07a8f6c614899b85f891efd45d5e4e93f7f4 (diff) |
fix(pylint): Some quick pylints
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Iba133914882485191ad962e36fae70b6fda0af98
Diffstat (limited to 'resources/tools/telemetry/bundle_vpp.py')
-rw-r--r-- | resources/tools/telemetry/bundle_vpp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/tools/telemetry/bundle_vpp.py b/resources/tools/telemetry/bundle_vpp.py index 315360f63b..963690bb5d 100644 --- a/resources/tools/telemetry/bundle_vpp.py +++ b/resources/tools/telemetry/bundle_vpp.py @@ -263,8 +263,8 @@ class BundleVpp: for command in zip(self.api_command_list, self.api_replies_list): self_fn = command[0][u"api_args"][u"cmd"].replace(u" ", u"_") self_method_list = [meth for meth in dir(self) - if callable(getattr(self, meth)) and - meth.startswith('__') is False] + if callable(getattr(self, meth)) and + meth.startswith('__') is False] if self_fn not in self_method_list: continue try: @@ -272,9 +272,9 @@ class BundleVpp: self_fn(command[1].reply) except AttributeError: pass - except (KeyError, ValueError, TypeError) as e: + except (KeyError, ValueError, TypeError) as exc: getLogger("console_stderr").error( - f"Failed when processing data. Error message {e}" + f"Failed when processing data. Error message {exc}" ) sys.exit(Constants.err_telemetry_process) |