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:
@@ -235,7 +235,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
|||||||
# There is none on empty pages, so we need to check
|
# There is none on empty pages, so we need to check
|
||||||
if leadsec:
|
if leadsec:
|
||||||
# Get the last template in 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 there is one, add notice after this
|
||||||
if ltemplates:
|
if ltemplates:
|
||||||
|
|||||||
Reference in New Issue
Block a user