Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PAPI Executor: Add more desciptive error message
[csit.git]
/
resources
/
libraries
/
python
/
PapiExecutor.py
diff --git
a/resources/libraries/python/PapiExecutor.py
b/resources/libraries/python/PapiExecutor.py
index
b0ddccf
..
c103c40
100644
(file)
--- 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:
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(
for data in json_data:
try:
api_reply_processed = dict(