Commit 3d4e894c authored by wnagele's avatar wnagele

Fixes 'TypeError: readtle() argument 1 must be str, not unicode'

Signed-off-by: wnagele's avatarWolfgang Nagele <mail@wnagele.com>
parent b942336d
......@@ -154,9 +154,9 @@ class WorkerTrack(Worker):
observer.elevation = observer_dict["elev"]
observer.date = ephem.Date(start)
satellite = ephem.readtle(satellite_dict["tle0"],
satellite_dict["tle1"],
satellite_dict["tle2"])
satellite = ephem.readtle(
str(satellite_dict["tle0"]), str(satellite_dict["tle1"]),
str(satellite_dict["tle2"]))
timestamp_max = ephem.Date(observer.next_pass(satellite)[2]).datetime()
pin = pinpoint(observer_dict, satellite_dict, timestamp_max)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment