6408: python3 fix

svn: r21430
This commit is contained in:
Nick Hall 2013-02-24 13:52:56 +00:00
parent 0b30e204bf
commit dc671cf212

View File

@ -71,7 +71,7 @@ def format_gps(raw_dms, nsew):
for val in raw_dms.split(' '):
try:
num = float(val.split('/')[0]) / float(val.split('/')[1])
except ValueError, IndexError:
except (ValueError, IndexError):
value = None
break
value += num / divisor