File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
source/UnityAssetUploader Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
"""
21
21
22
22
import argparse
23
- from http import client , HTTPStatus
23
+ from http import client
24
24
from urllib import parse
25
25
import json
26
26
import os
@@ -162,7 +162,7 @@ def _make_request(
162
162
else :
163
163
raise ValueError ("Invalid http method provided." )
164
164
response = connection .getresponse ()
165
- if response .status > HTTPStatus .FOUND :
165
+ if response .status > client .FOUND :
166
166
print ("Response: {}" .format (response .read ()))
167
167
raise Exception ("Error making http request: {} {}" .format (
168
168
response .status , response .reason ))
@@ -203,7 +203,7 @@ def _login(self):
203
203
encoded_path ,
204
204
headers = {'Accept' : 'application/json' })
205
205
response = connection .getresponse ()
206
- if response .status > HTTPStatus .FOUND :
206
+ if response .status > client .FOUND :
207
207
print ("Response: {}" .format (response .read ()))
208
208
raise RequestError ("Error making https request: {} {}" .format (
209
209
response .status , response .reason ))
You can’t perform that action at this time.
0 commit comments