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-pipeline
csst_common
Commits
86a46ad6
Commit
86a46ad6
authored
Jan 12, 2024
by
BO ZHANG
🏀
Browse files
print func args kwargs for debug purpose
parent
9b73aea1
Pipeline
#3240
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
csst_common/utils/_retry.py
View file @
86a46ad6
...
...
@@ -30,4 +30,7 @@ def retry(func, *args, **kwargs):
return
res
except
BaseException
as
e
:
print
(
f
"Error occurs:
{
e
.
__repr__
()
}
"
)
print
(
f
" - func:
{
func
}
"
)
print
(
f
" - args:
{
args
}
"
)
print
(
f
" - kwargs:
{
kwargs
}
"
)
raise
RuntimeError
(
f
"All
{
n_try
}
attempts failed."
)
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