diff --git a/src/baxter_interface/robot_enable.py b/src/baxter_interface/robot_enable.py index 78bf45f..c12ef50 100644 --- a/src/baxter_interface/robot_enable.py +++ b/src/baxter_interface/robot_enable.py @@ -164,7 +164,7 @@ def reset(self): timeout_msg=error_env, body=pub.publish ) - except OSError, e: + except OSError as e: if e.errno == errno.ETIMEDOUT: if self._state.error == True and self._state.stopped == False: rospy.logwarn(error_nonfatal)