Hi,

Short answer is no, but you should be able to use the text of the error 
message to help narrow down the source. In this case you are interested in:

NotFound: cannot find 'h' while searching for 'h'

Start by looking where you have used ‘h’ as a tag, variable or otherwise in 
an expression in your template.

Gary.
On Saturday, 21 November 2020 at 07:53:22 UTC+10 [email protected] wrote:

>
> Hello,
> I have a silly bug in my weewx template index.html.tmpl.
> Is there a way to know which line is wrong?
>
> This is what I have in the logs:
>
> ov 20 22:50:24 vegan weewx[474] DEBUG weewx.drivers.wmr200:   Queuing live 
> packet rx:1900 live_queue_len:1
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: Generate 
> failed with exception '<class 'NameMapper.NotFound'>'
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: **** 
> Ignoring template /home/weewx/skins/External/index.html.tmpl
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: **** 
> Reason: cannot find 'h' while searching for 'h'
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: ****  
> Traceback (most recent call last):
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: ****    
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: ****      
> unicode_string = compiled_template.respond()
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: ****    
> File 
> "cheetah__home_weewx_skins_External_index_html_tmpl_1605908425_09_35362.py", 
> line 158, in respond
> Nov 20 22:50:25 vegan weewx[474] ERROR weewx.cheetahgenerator: ****  
> NotFound: cannot find 'h' while searching for 'h'
>
>

-- 
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/e8266667-60c0-4ca6-b984-84be04670eean%40googlegroups.com.

Reply via email to