that fixed the IndexError crashing cheetah while generating Seasons, and files 
are generated without errors

now what i see in the generated files is US units, whereas i selected metric 
units during clean install.
same config files as i submitted last time; i can resubmit for convenience

(i know how to fix these things; i am trying the beta from scratch and looking 
for glitches)
cheers

> On 13 Nov 2021, at 23:53, matthew wall <[email protected]> wrote:
> 
> graham,
> 
> please try this fix.  in bin/weewx/units.py, change line 652 from this:
>     return label[1] if plural else label[0]
> 
> to this:
> 
>     return label[1] if plural and len(label) > 1 else label[0]
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "weewx-development" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-development/h_NNrIk830s/unsubscribe 
> <https://groups.google.com/d/topic/weewx-development/h_NNrIk830s/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-development/90ac1568-6f4b-444e-aecb-2358e923ce9en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-development/90ac1568-6f4b-444e-aecb-2358e923ce9en%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/4165DEBF-8CC9-4494-97AA-24109321B235%40gmail.com.

Reply via email to