Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Labs Instructions for TDDE05
Manage
Activity
Members
Plan
Wiki
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TDDE05 Students
Labs Instructions for TDDE05
Wiki
lab3
Changes
Page history
New page
Templates
Clone repository
Update lab3
authored
1 year ago
by
Cyrille Berger
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab3.md
+1
-1
1 addition, 1 deletion
lab3.md
with
1 addition
and
1 deletion
lab3.md
View page @
1c76b83e
...
@@ -366,7 +366,7 @@ import ament_index_python
...
@@ -366,7 +366,7 @@ import ament_index_python
def
display_exceptions
(
func
):
def
display_exceptions
(
func
):
def
wrapper
(
*
args
):
def
wrapper
(
*
args
):
try
:
try
:
func
(
*
args
)
return
func
(
*
args
)
except
Exception
as
ex
:
except
Exception
as
ex
:
traceback
.
print_exception
(
*
sys
.
exc_info
())
traceback
.
print_exception
(
*
sys
.
exc_info
())
print
(
f
"
Unhandled exception was caught:
'
{
ex
}
'"
)
print
(
f
"
Unhandled exception was caught:
'
{
ex
}
'"
)
...
...
This diff is collapsed.
Click to expand it.