From 2dabea0e75a7b379219556fbe395b41ecb530117 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 12 May 2020 21:55:56 +0200 Subject: [PATCH] Fix Python 3 syntax error #52 again --- nodes/axis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/axis.py b/nodes/axis.py index 27927e4..cab25f4 100755 --- a/nodes/axis.py +++ b/nodes/axis.py @@ -69,7 +69,7 @@ def openURL(self): try: self.fp = urllib2.urlopen(self.url, timeout=self.timeoutSeconds) return(True) - except urllib2.URLError, e: + except urllib2.URLError as e: rospy.logwarn('Error opening URL %s' % (self.url) + 'Possible timeout. Looping until camera appears') return(False)