git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50cf8f
)
iotlab driver: OAR rest API sends back error messages, Applying Jordan's changes
author
Loic Baron
<sandrine.avakian@inria.fr>
Wed, 30 Jul 2014 14:03:10 +0000
(16:03 +0200)
committer
Loic Baron
<sandrine.avakian@inria.fr>
Wed, 30 Jul 2014 14:03:10 +0000
(16:03 +0200)
sfa/iotlab/OARrestapi.py
patch
|
blob
|
history
diff --git
a/sfa/iotlab/OARrestapi.py
b/sfa/iotlab/OARrestapi.py
index
21c78d3
..
c612e47
100644
(file)
--- a/
sfa/iotlab/OARrestapi.py
+++ b/
sfa/iotlab/OARrestapi.py
@@
-229,7
+229,7
@@
class OARrestapi:
#raise ServerError("GET_OAR_SRVR : Could not reach OARserver")
if resp.status >= 400:
raise ValueError ("Response Error %s, %s" %(resp.status,
- resp.reason))
+ resp.reason
, resp.read()
))
try:
js_dict = json.loads(body)
#print "\r\n \t\t\t js_dict keys" , js_dict.keys(), " \r\n", js_dict
@@
-287,7
+287,7
@@
class OARrestapi:
if resp.status >= 400:
raise ValueError ("Response Error %s, %s" %(resp.status,
- resp.reason))
+ resp.reason
, body
))
try: