X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiExecutor.py;h=bfa538fc15de7b1d34439408c0abd1ad70e4eacc;hp=4e4e0828b0759e81457df6bbff4ff1f02cfdcd8b;hb=669d320bc64e41f879c047a39a66b8ec99bf4b1e;hpb=37a9451377f7239365b5af778b8072d1585a2d2a diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py index 4e4e0828b0..bfa538fc15 100644 --- a/resources/libraries/python/PapiExecutor.py +++ b/resources/libraries/python/PapiExecutor.py @@ -193,6 +193,7 @@ class PapiSocketExecutor(object): # Package path has to be one level above the vpp_papi directory. package_path = package_path.rsplit('/', 1)[0] sys.path.append(package_path) + # pylint: disable=import-error from vpp_papi.vpp_papi import VPPApiClient as vpp_class vpp_class.apidir = api_json_directory # We need to create instance before removing from sys.path. @@ -705,7 +706,7 @@ class PapiExecutor(object): "\n{apis}".format(host=self._node["host"], apis=api_data)) raise - except Exception as exc: + except Exception as exc: # pylint: disable=broad-except raise_from(RuntimeError( "PAPI command(s) execution on host {host} " "failed: {apis}".format(