From e91cb175dadce76ffcb06e161ba06731bfcfff01 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Wed, 2 Mar 2022 08:37:10 +0100 Subject: [PATCH] L2SS-554: Fix exception --- tangostationcontrol/tangostationcontrol/beam/delays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tangostationcontrol/tangostationcontrol/beam/delays.py b/tangostationcontrol/tangostationcontrol/beam/delays.py index 59d566a1e..850213c0c 100644 --- a/tangostationcontrol/tangostationcontrol/beam/delays.py +++ b/tangostationcontrol/tangostationcontrol/beam/delays.py @@ -61,7 +61,7 @@ class delay_calculator: def convert(self, direction, antenna_itrf: list([float])): # explicitly check validity to get a proper error message if not self.is_valid_direction(direction): - raise ValueError(f"Could not convert direction {direction} into a pointing") from e + raise ValueError(f"Invalid direction: {direction}") # obtain the direction vector for a specific pointing pointing = self.measure.direction(*direction) -- GitLab