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(