File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,18 @@ def __init__(self, response):
42
42
self .response = response
43
43
err = parse_html_error (response .text )
44
44
self .message = ": " .join (err ) or "failed"
45
- if response .status_code == 401 :
46
- raise SystemExit (
47
- f'{ response .url } returned: "401 Unauthorized". Wrong username/password.'
48
- )
49
- elif response .status_code == 404 :
50
- raise SystemExit (
51
- f'{ response .url } is "404 Not Found". Are you sure this is a Jamf Pro server?'
52
- )
53
- elif response .status_code == 503 :
54
- raise SystemExit (
55
- f'{ response .url } returned: "503 Service Unavailable". Maybe the Jamf server is still starting.'
56
- )
45
+ # if response.status_code == 401:
46
+ # print (
47
+ # f'{response.url} returned: "401 Unauthorized". Wrong username/password.'
48
+ # )
49
+ # elif response.status_code == 404:
50
+ # print (
51
+ # f'{response.url} is "404 Not Found". Are you sure this is a Jamf Pro server?'
52
+ # )
53
+ # elif response.status_code == 503:
54
+ # print (
55
+ # f'{response.url} returned: "503 Service Unavailable". Maybe the Jamf server is still starting.'
56
+ # )
57
57
print (
58
58
f"{ response } : { response .request .method } - { response .url } : \n { self .message } "
59
59
)
You can’t perform that action at this time.
0 commit comments