Better stick to the docs for bs4..

This commit is contained in:
A. Svensson 2015-02-22 15:12:20 +01:00
parent 9def31f374
commit f21bb365fa

View File

@ -57,7 +57,7 @@ class ServerParser(object):
def _parse_server_data(self, data):
'''Parse the individual parts of each server.'''
try:
title = data.find('b').text.splitlines()[0].strip()
title = data.find('b').get_text().splitlines()[0].strip()
except AttributeError:
# HACK: I think this happends because the raw data was incomplete.
# No complete data, no server update.