From 8b84132ef5eb0866be2256d99eed4efd540f8366 Mon Sep 17 00:00:00 2001 From: kd Date: Fri, 3 May 2024 11:44:27 +0200 Subject: [PATCH] add comment --- Sail_Instrument/plugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sail_Instrument/plugin.py b/Sail_Instrument/plugin.py index 4ce9f1d..8b1ad06 100644 --- a/Sail_Instrument/plugin.py +++ b/Sail_Instrument/plugin.py @@ -377,12 +377,12 @@ def mag_variation(self, lat, lon): if time.monotonic() - self.variation_time > self.variation_period: self.variation = self.variation_model.GeoMag(lat, lon).dec self.variation_time = time.monotonic() - try: - self.variation + try: # issue #22 + self.variation except Exception as x: - self.variation = self.variation_model.GeoMag(lat, lon).dec - self.variation_time = time.monotonic() - + self.variation = self.variation_model.GeoMag(lat, lon).dec + self.variation_time = time.monotonic() + return self.variation def manual_wind(self):