From 6c92acf385c8d6092cff931cf20e0074c01dd522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20L?= <37879596+Tomz295@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:30:53 -0400 Subject: [PATCH] added missing exception print --- URSentry.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/URSentry.py b/URSentry.py index b242209..c9a87bf 100644 --- a/URSentry.py +++ b/URSentry.py @@ -40,7 +40,8 @@ class URSentry: self.robot.get_joint_speeds() except KeyboardInterrupt as ki: raise ki - except: + except Exception as e: + print(e) print("########################################################") print("#### MODBUS HEALTHCHECK FAILED ####") print("########################################################") @@ -314,7 +315,7 @@ class URSentry: if __name__ == "__main__": host = "172.22.114.160" sentry = URSentry(host) - #sentry.sentry_position() + sentry.sentry_position() # sleep(3) #sentry.robot.movej(sentry.looking_down_pose, a=0.5, v=1.5) #sleep(3)