From 35c253dc097ef623706636edda9c0916e5c03216 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Wed, 19 Aug 2015 17:41:42 +0200 Subject: [PATCH] Fixed: Not found or invalid authtoken --- gamespy/gs_utility.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gamespy/gs_utility.py b/gamespy/gs_utility.py index 72ddfb1..63bc126 100644 --- a/gamespy/gs_utility.py +++ b/gamespy/gs_utility.py @@ -126,6 +126,12 @@ def parse_authtoken(authtoken, db): def login_profile_via_parsed_authtoken(authtoken_parsed, db): + """Return login profile via parsed authtoken. + + authtoken_parsed MUST HAVE userid field and can't be None! + """ + if authtoken_parsed is None or 'userid' not in authtoken_parsed: + return None, None, None, None console = 0 userid = authtoken_parsed['userid']