btw, this works perfectly as intended....

trying to do 1/0
{{try:}}
{{for a in range(15):}}
    {{=1/0}}
{{pass}}
{{except:}}
    can't divide by 0
{{pass}}

Il giorno mercoledì 30 maggio 2012 16:15:10 UTC+2, Niphlod ha scritto:
>
>
> didn't test it, but I spot a missing : after "for x in db.test"
>
>
> Il giorno mercoledì 30 maggio 2012 16:08:10 UTC+2, BlueShadow ha scritto:
>>
>> Hi I like to put a for-loop in a try except clause in an html file.
>> My problem is that the pass from the for loop terminates the try block.
>> {{try:}}
>> {{for x in db.test}}
>> {{=x.title}}
>> {{pass}}
>> {{except:}}
>> no database entries
>> {{pass}}
>>
>>
>>

Reply via email to