rcextensions: helpers fix, non json data should use params.
dan -
r4158:57895576 default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -41,7 +41,7
41 if json_data:
41 if json_data:
42 resp = method_caller(url, json=json_data, timeout=timeout)
42 resp = method_caller(url, json=json_data, timeout=timeout)
43 elif params:
43 elif params:
44 resp = method_caller(url, params=json_data, timeout=timeout)
44 resp = method_caller(url, params=params, timeout=timeout)
45 else:
45 else:
46 raise AttributeError('Provide json_data= or params= in function call')
46 raise AttributeError('Provide json_data= or params= in function call')
47 resp.raise_for_status() # raise exception on a failed request
47 resp.raise_for_status() # raise exception on a failed request
Comments 0
You need to be logged in to leave comments. Login now