Commit ebbe07bf authored by Wei Shoulin's avatar Wei Shoulin
Browse files

fix bugfix bug

parent 3ba714d6
......@@ -24,7 +24,7 @@ def request_error_handler_decorator(func):
def wrapper(*args, **kwargs):
try:
result = func(*args, **kwargs)
if result.headers['content-type'] == "application/octet-stream":
if 'content-type' in result.headers and result.headers['content-type'] == "application/octet-stream":
return result
return Result.from_response(result)
except requests.exceptions.ConnectionError as e:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment