Skip to content

Commit 67d3ddb

Browse files
committed
Fixed bug in guild names being parsed with Non-Breaking spaces instead of a regular space.
1 parent abe28ef commit 67d3ddb

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Changelog
66
Due to this library relying on external content, older versions are not guaranteed to work.
77
Try to always use the latest version.
88

9+
.. v3.6.3:
10+
11+
3.6.3 (2021-01-14)
12+
==================
13+
14+
- Fixed bug in guild names being parsed with Non-Breaking spaces instead of a regular space.
15+
916
.. v3.6.2:
1017
1118
3.6.2 (2021-01-01)

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.6.2'
1+
__version__ = '3.6.3'
22
__author__ = 'Allan Galarza'
33

44
import logging

tibiapy/character.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def _parse_character_information(self, rows):
429429
if field == "guild_membership":
430430
guild_link = cols_raw[1].find('a')
431431
rank = value.split("of the")[0]
432-
char["guild_membership"] = GuildMembership(guild_link.text, rank.strip())
432+
char["guild_membership"] = GuildMembership(guild_link.text.replace("\xa0", " "), rank.strip())
433433

434434
continue
435435
if field in int_rows:

0 commit comments

Comments
 (0)