Try adding #errorCatcher Echo to the template https://pythonhosted.org/Cheetah/dev_guide/errorHandling.html#errorcatcher
Invisible Man schrieb am Dienstag, 22. August 2023 um 09:45:15 UTC+2: > Yes, I customized that template myself. The issue is occasional, so for > some reason, sometimes that value has no reading. As the template is a bit > long, I was wondering if there was a solution to pin down the exact > location of the bug, but I'll just add a condition testing for None before > in all situations. > Thanks. > > On Monday, August 21, 2023 at 6:33:37 PM UTC+2 Karen K wrote: > >> >> >> [email protected] schrieb am Montag, 21. August 2023 um 12:10:29 UTC+2: >> >> #if $val > $other >> >> >> And you could change it to: >> >> #if $val is not None and $val>$other >> >> or >> >> #if $val is None or $val>$other >> >> depending on what you want to do with the None value. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" 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-user/edb8d2cf-8b2b-4932-8410-bc3e8e5bf160n%40googlegroups.com.
