From 73eb13485d38a0855cffe19aa6966eba44e2161a Mon Sep 17 00:00:00 2001 From: "Prof. Lee" Date: Wed, 2 Feb 2022 10:31:24 -0500 Subject: [PATCH] Minor tweak for Python 3 compatibility --- src/baxter_interface/robot_enable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)