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
848a7652
Commit
848a7652
authored
Dec 05, 2025
by
Wei Shoulin
Browse files
fix(csst_dfs_client): remove redundant error code in connection error handler
parent
65d36562
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_client/common/request.py
View file @
848a7652
...
@@ -28,7 +28,7 @@ def request_error_handler_decorator(func):
...
@@ -28,7 +28,7 @@ def request_error_handler_decorator(func):
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
:
return
Result
.
error
(
code
=
502
,
message
=
f
"Bad Gateway:
{
e
}
"
)
return
Result
.
error
(
message
=
f
"Bad Gateway:
{
e
}
"
)
except
Exception
as
e
:
except
Exception
as
e
:
return
Result
.
error
(
message
=
str
(
e
))
return
Result
.
error
(
message
=
str
(
e
))
return
wrapper
return
wrapper
...
...
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