From 21429a831ef04526d5c670122a87cf7838e409f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20D=C3=ADaz=20P=C3=A9rez?= Date: Mon, 11 Sep 2023 15:19:59 +0200 Subject: [PATCH] Change warning message for leap seconds The current message caused some confusion for me. I updated it to something that is hopefully more clear --- pysolar/solartime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysolar/solartime.py b/pysolar/solartime.py index f36ae37..a1a17d8 100644 --- a/pysolar/solartime.py +++ b/pysolar/solartime.py @@ -112,7 +112,7 @@ def get_leap_seconds(when) : ) : warnings.warn \ ( - "I don't know about leap seconds after %d" + "Leap seconds for year %d are not available for the installed version of pysolar" % (leap_seconds_base_year + len(leap_seconds_adjustments) - 1) )