##// END OF EJS Templates
rcextensions: helpers fix, non json data should use params.
dan -
r4158:57895576 default
parent child Browse files
Show More
@@ -41,7 +41,7 b' def run(url, json_data=None, params=None'
41 41 if json_data:
42 42 resp = method_caller(url, json=json_data, timeout=timeout)
43 43 elif params:
44 resp = method_caller(url, params=json_data, timeout=timeout)
44 resp = method_caller(url, params=params, timeout=timeout)
45 45 else:
46 46 raise AttributeError('Provide json_data= or params= in function call')
47 47 resp.raise_for_status() # raise exception on a failed request
General Comments 0
You need to be logged in to leave comments. Login now