Skip to content

Commit 8b4a697

Browse files
committed
Fix IndexError
1 parent 1b6bb05 commit 8b4a697

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ def link_abusefilter(self, afid, globalaf=False):
12601260
if afid == "":
12611261
return "過濾器"
12621262
if globalaf:
1263-
return ('<a href="https://meta.wikimedia.org/wiki/Special:Abusefilter/{1}">全域過濾器{1}</a>'
1263+
return ('<a href="https://meta.wikimedia.org/wiki/Special:Abusefilter/{0}">全域過濾器{0}</a>'
12641264
.format(afid))
12651265
return ('<a href="https://{0}/wiki/Special:Abusefilter/{1}">過濾器{1}</a>'
12661266
.format(self.domain, afid))

0 commit comments

Comments
 (0)