Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
6ed351a
)
PAPI Executor: Add more desciptive error message
22/18322/3
author
Tibor Frank
<tifrank@cisco.com>
Fri, 15 Mar 2019 11:44:44 +0000
(12:44 +0100)
committer
Peter Mikus
<pmikus@cisco.com>
Mon, 18 Mar 2019 06:35:19 +0000
(06:35 +0000)
- Add more desciptive error message to the processing of replies.
Change-Id: Ie43651370d5754aedf2515438c02ff4aa21bdc46
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/libraries/python/PapiExecutor.py
patch
|
blob
|
history
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:
- 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(