From c4197c15a4a8535d6cd6fe8b205b928cf5739bbf Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Sat, 10 Nov 2018 16:35:40 +0000 Subject: [PATCH] fix create_emergency_codes() not returning codes --- steam/guard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/guard.py b/steam/guard.py index 123e349..838fa4e 100644 --- a/steam/guard.py +++ b/steam/guard.py @@ -238,7 +238,7 @@ class SteamAuthenticator(object): :return: list of codes :rtype: list """ - return self._send_request('CreateEmergencyCodes', {}).get('code', []) + return self._send_request('CreateEmergencyCodes', {}).get('codes', []) def destroy_emergency_codes(self): """Destroy all emergency codes