Do not search for templates recursivly

Since nested templates did not get an index in global wikicode object
searching for index of an nested template results in ValueError

Related Task: [FS#153](https://fs.golderweb.de/index.php?do=details&task_id=153)
This commit is contained in:
2017-09-02 14:23:25 +02:00
parent 49bc05d29b
commit f8002c85da

View File

@@ -235,7 +235,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
# There is none on empty pages, so we need to check
if leadsec:
# Get the last template in leadsec
ltemplates = leadsec.filter_templates()
ltemplates = leadsec.filter_templates(recursive=False)
# If there is one, add notice after this
if ltemplates: