Update main.py
Fix error: UnicodeEncodeError: 'ascii' codec can't encode characters in position 38-41: ordinal not in range(128)
This commit is contained in:
parent
fe1b049119
commit
8839910e8e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -79,7 +79,7 @@ def get_games():
|
|||
if last_div:
|
||||
game_cost = last_div.getText().replace('(', '').replace(')', '').replace('P', '')
|
||||
|
||||
game_name = item.find('a', {'class': 'giveaway__heading__name'}).text
|
||||
game_name = item.find('a', {'class': 'giveaway__heading__name'}).text.encode('utf-8')
|
||||
|
||||
if int(points) - int(game_cost) < 0:
|
||||
print('Not enough points to enter: ' + game_name)
|
||||
|
|
Loading…
Reference in a new issue