Note: groups.io will be down for maintenance on Wednesday, October 5th, starting at 9AM Pacific Time (4PM Wednesday October 5, 2022 UTC), for approximately one hour.
This is a known problem with the python astral library for locations with near to and higher latitudes than the Arctic and Antarctic Circles depending on time of year when the sun does not set or does not rise.
The set location in your example is in the north of Canada's Northwest territories - was that your intention?
If truly so, then Rob, we should discuss options, e.g. wrapping the astral program within one that has to check for applicable time of year and latitude before passing to astral.