We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b286fd4 commit 799771bCopy full SHA for 799771b
wes_client/util.py
@@ -158,8 +158,10 @@ def expand_globs(attachments):
158
159
def wes_reponse(postresult):
160
if postresult.status_code != 200:
161
- logging.error("%s", json.loads(postresult.text))
162
- exit(1)
+ error = str(json.loads(postresult.text))
+ logging.error(error)
163
+ raise Exception(error)
164
+
165
return json.loads(postresult.text)
166
167
0 commit comments