>Try adding >#errorCatcher Echo >to the template Nice! Thanks!
On Tuesday, August 22, 2023 at 9:50:35 AM UTC+2 michael.k...@gmx.at wrote: > 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: >> >>> >>> >>> michael.k...@gmx.at 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cd5fa090-4aad-43a3-bc66-433fb6aacb3cn%40googlegroups.com.