Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
print func args kwargs for debug purpose
parent
9b73aea1
No related merge requests found
Pipeline
#3240
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/utils/_retry.py
+3
-0
csst_common/utils/_retry.py
with
3 additions
and
0 deletions
+3
-0
csst_common/utils/_retry.py
+
3
-
0
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."
)
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets