Open mapostolidou opened 3 years ago
The template is declared just under the if statement so if the code reaches the elif at line 490 it is out of scope.
I solved it by inserting a line after the elif (line 490) and with template so that the template is declared even when the code runs from the elif.
It should work fine if you also move the template from line 480 and place it before the if block but I didn't test that.
The template is declared just under the if statement so if the code reaches the elif at line 490 it is out of scope.
I solved it by inserting a line after the elif (line 490) and with template so that the template is declared even when the code runs from the elif.
It should work fine if you also move the template from line 480 and place it before the if block but I didn't test that.