Better stick to the docs for bs4..
This commit is contained in:
parent
9def31f374
commit
f21bb365fa
@ -57,7 +57,7 @@ class ServerParser(object):
|
|||||||
def _parse_server_data(self, data):
|
def _parse_server_data(self, data):
|
||||||
'''Parse the individual parts of each server.'''
|
'''Parse the individual parts of each server.'''
|
||||||
try:
|
try:
|
||||||
title = data.find('b').text.splitlines()[0].strip()
|
title = data.find('b').get_text().splitlines()[0].strip()
|
||||||
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.
|
||||||
# No complete data, no server update.
|
# No complete data, no server update.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user