Correct the exception catching.

The exception thrown did not have the good type.
As a result, printing for example
robot.featureComDes
would crash.