diff --git a/pyobs/robotic/lco/taskarchive.py b/pyobs/robotic/lco/taskarchive.py index f84d04d0..b7cc71d3 100644 --- a/pyobs/robotic/lco/taskarchive.py +++ b/pyobs/robotic/lco/taskarchive.py @@ -111,7 +111,11 @@ async def get_schedulable_blocks(self) -> List[ObservingBlock]: # target t = cfg["target"] - target = SkyCoord(t["ra"] * u.deg, t["dec"] * u.deg, frame=t["type"].lower()) + if "ra" in t and "dec" in t: + target = SkyCoord(t["ra"] * u.deg, t["dec"] * u.deg, frame=t["type"].lower()) + else: + log.warning("Unsupported coordinate type.") + continue # constraints c = cfg["constraints"] diff --git a/pyproject.toml b/pyproject.toml index 8116aef9..736ff8aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "pyobs-core" packages = [{ include = "pyobs" }] -version = "1.13.2" +version = "1.13.3" description = "robotic telescope software" authors = ["Tim-Oliver Husser "] license = "MIT"