X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPapiExecutor.py;h=c103c40d9a8b434abd30d86b1737678b72b56f14;hp=b0ddccfbde8b10a3a9ab462a93a252793400387e;hb=6aaecf9f7fe3f0ad0d9bbad20e4853472d3e72df;hpb=6ed351a58a7452d6bd99a049cc45610345b7c75b diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py index b0ddccfbde..c103c40d9a 100644 --- a/resources/libraries/python/PapiExecutor.py +++ b/resources/libraries/python/PapiExecutor.py @@ -293,7 +293,12 @@ class PapiExecutor(object): papi_reply = list() if process_reply: - json_data = json.loads(stdout) + try: + json_data = json.loads(stdout) + except ValueError: + logger.error("An error occured while processing the PAPI " + "request:\n{rqst}".format(rqst=local_list)) + raise for data in json_data: try: api_reply_processed = dict(