X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftelemetry%2Fbundle_vpp.py;h=963690bb5df9ac69560a1effb59305cee5c4198a;hp=315360f63bf904ddf19a6457106ecdf2415e94f0;hb=ac0807e55644020c877329d3bc05adc26ce76e7f;hpb=a08e07a8f6c614899b85f891efd45d5e4e93f7f4 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)