From 1f86e9ff6715e59343f19dd30ec80a846442edc0 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 5fe77f5..60f7732 100644 --- a/steam/guard.py +++ b/steam/guard.py @@ -241,7 +241,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