From ba9a0ea29e167ee9ea282b6cbf8facafb520a699 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Mon, 30 May 2016 13:14:23 +0100 Subject: [PATCH] fix error in WebAuth docs example code --- steam/webauth.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/steam/webauth.py b/steam/webauth.py index ce9580f..4e7d57b 100644 --- a/steam/webauth.py +++ b/steam/webauth.py @@ -32,7 +32,10 @@ Example usage: except wa.TwoFactorCodeRequired: user.login(twofactor_code='ZXC123') - wa.session.get('https://store.steampowered.com/account/history/') + user.session.get('https://store.steampowered.com/account/history/') + # OR + session = user.login() + session.get('https://store.steampowered.com/account/history') Alternatively, if Steam Guard is not enabled on the account: @@ -43,6 +46,8 @@ Alternatively, if Steam Guard is not enabled on the account: except wa.HTTPError: pass +The :class:`WebAuth` instance should be discarded once a session is obtained +as it is not reusable. """ from time import time import sys