6408: python3 fix

svn: r21431
This commit is contained in:
Nick Hall 2013-02-24 13:53:15 +00:00
parent 4621970783
commit 8d06298921

View File

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