fix deg.py

This commit is contained in:
Motiejus Jakštys 2019-11-24 18:10:17 +02:00
parent f39a268b30
commit b5ae02513a

View File

@ -10,8 +10,8 @@ def guess(inp):
if isinstance(inp, Dec):
return inp
if '-' in instr:
deg, mm, ss = instr.split('-')
if isinstance(inp, str) and '-' in inp:
deg, mm, ss = inp.split('-')
ddeg, dmm, dss = Dec(deg), Dec(mm), Dec(ss)
return deg + dmm/60 + dss/3600
else: