Unverified Commit 6bfbe7a9 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #1081 from jcarpent/devel

Fix print of error message in Python
parents 22deb83d 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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment