Skip to content

Commit dcdd039

Browse files
author
sadanandhegde
authored
Update Sandbox.py
1 parent 9ce27ac commit dcdd039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sandbox-API/Sandbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _request_and_parse(self, request_type, url_str, json_dict={}, data_dict={}):
3838
response = requests.post(url_str, json=json_dict, headers=self.headers, data=json.dumps(data_dict))
3939

4040
if not response.ok:
41-
sys.exit('Error code: {}\nError text: {}\nP{} failed, exiting'.format(response.status_code,
41+
raise Exception('Error code: {}\nError text: {}\nP{} failed, exiting'.format(response.status_code,
4242
json.loads(response.text)[
4343
'message'], url_str))
4444
return response

0 commit comments

Comments
 (0)