Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
17187439
Verified
Commit
17187439
authored
Feb 20, 2020
by
Justin Carpentier
Browse files
examples: fix print of error message
parent
22deb83d
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/display-shapes.py
View file @
17187439
...
...
@@ -37,14 +37,14 @@ try:
viz
.
initViewer
()
except
ImportError
as
error
:
print
(
"Error while initializing the viewer. It seems you should install gepetto-viewer"
)
print
(
error
.
message
)
print
(
error
)
sys
.
exit
(
0
)
try
:
viz
.
loadViewerModel
(
"shapes"
)
except
AttributeError
as
error
:
print
(
"Error while loading the viewer model. It seems you should start gepetto-viewer"
)
print
(
error
.
message
)
print
(
error
)
sys
.
exit
(
0
)
viz
.
display
(
np
.
zeros
(
0
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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