Coverity: [skip ci] Bad use of null-like value

This commit is contained in:
wmayer
2020-07-21 12:23:10 +02:00
parent 6b4a5066a4
commit 617668a7f2
5 changed files with 9 additions and 6 deletions

View File

@@ -152,7 +152,7 @@ def getlinks(html):
rg = re.findall('href="\/wiki\/(.*?)"',l)
if "images" in rg:
rg = None
if "mediawiki" in rg:
elif "mediawiki" in rg:
rg = None
if rg:
rg = rg[0]