From f21bb365fa5b56a651f11b812559631ef2b185cf Mon Sep 17 00:00:00 2001 From: "A. Svensson" Date: Sun, 22 Feb 2015 15:12:20 +0100 Subject: [PATCH] Better stick to the docs for bs4.. --- src/gameservers/management/commands/update_population.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameservers/management/commands/update_population.py b/src/gameservers/management/commands/update_population.py index 61d7d19..cc8e299 100755 --- a/src/gameservers/management/commands/update_population.py +++ b/src/gameservers/management/commands/update_population.py @@ -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.