Hotfix to the hotfix and hot dogs all around.
This commit is contained in:
parent
de942345a8
commit
2d9862a2ea
@ -132,6 +132,7 @@ class ServerScraper(object):
|
|||||||
# server title), we give them The Boot.
|
# server title), we give them The Boot.
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
# HACK: In case the server title is encased in extra <B> tags,
|
# HACK: In case the server title is encased in extra <B> tags,
|
||||||
# simply grab the second matching tag and use only that as title
|
# simply grab the second matching tag and use only that as title
|
||||||
# TODO: What if there's multiple <B> tags all over the data?
|
# TODO: What if there's multiple <B> tags all over the data?
|
||||||
@ -139,7 +140,6 @@ class ServerScraper(object):
|
|||||||
if tmp.find_all('b'):
|
if tmp.find_all('b'):
|
||||||
tmp = tmp.find('b')
|
tmp = tmp.find('b')
|
||||||
|
|
||||||
try:
|
|
||||||
title = tmp.get_text().splitlines()[0].strip().encode('utf-8')
|
title = tmp.get_text().splitlines()[0].strip().encode('utf-8')
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# HACK: I think this happends because the raw data was incomplete.
|
# HACK: I think this happends because the raw data was incomplete.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user