Show More
@@ -41,7 +41,7 b' def run(url, json_data=None, params=None' | |||||
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= |
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now