[game-data-packager] 01/01: steam: handle users without Steam account

Alexandre Detiste detiste-guest at moszumanska.debian.org
Mon Dec 28 16:05:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 9bfdb2c5626f466b89e57d526f20c36bc915e359
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Mon Dec 28 17:04:30 2015 +0100

    steam: handle users without Steam account
---
 game_data_packager/steam.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/game_data_packager/steam.py b/game_data_packager/steam.py
index 4b36d8a..4f11a9a 100644
--- a/game_data_packager/steam.py
+++ b/game_data_packager/steam.py
@@ -63,6 +63,8 @@ def owned_steam_games(steam_id=None):
     if owned_steam_games.STEAM_GAMES is not None:
         return owned_steam_games.STEAM_GAMES
     owned_steam_games.STEAM_GAMES = []
+    if steam_id is None:
+        return []
     url = "http://steamcommunity.com/profiles/" + steam_id + "/games?xml=1"
     html = urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent': AGENT}))
     tree = xml.etree.ElementTree.ElementTree()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list