Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-client
Commits
ebbe07bf
Commit
ebbe07bf
authored
Dec 28, 2024
by
Wei Shoulin
Browse files
fix bugfix bug
parent
3ba714d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/common/request.py
View file @
ebbe07bf
...
@@ -24,7 +24,7 @@ def request_error_handler_decorator(func):
...
@@ -24,7 +24,7 @@ def request_error_handler_decorator(func):
def
wrapper
(
*
args
,
**
kwargs
):
def
wrapper
(
*
args
,
**
kwargs
):
try
:
try
:
result
=
func
(
*
args
,
**
kwargs
)
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
return
Result
.
from_response
(
result
)
return
Result
.
from_response
(
result
)
except
requests
.
exceptions
.
ConnectionError
as
e
:
except
requests
.
exceptions
.
ConnectionError
as
e
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment