From 07322cc7f470d91973d27d86bd36c7212ea1085e Mon Sep 17 00:00:00 2001
From: Bryan Tong Minh <bryan.tongminh@gmail.com>
Date: Sat, 6 Sep 2008 10:32:40 +0000
Subject: [PATCH] * Also work when throttling is broken * Remove a debug
 statement

---
 mwclient/client.py | 2 +-
 mwclient/http.py   | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/mwclient/client.py b/mwclient/client.py
index 54677c9..f6d869b 100644
--- a/mwclient/client.py
+++ b/mwclient/client.py
@@ -290,7 +290,7 @@ class Site(object):
 				if login['login']['result'] == 'Success':
 					break
 				elif login['login']['result'] == 'Throttled':
-					self.wait(wait_token, login['login']['wait'])
+					self.wait(wait_token, login['login'].get('wait', 5))
 				else:
 					raise errors.LoginError(self, login['login'])
 				
diff --git a/mwclient/http.py b/mwclient/http.py
index 6fb1619..2a82fdb 100644
--- a/mwclient/http.py
+++ b/mwclient/http.py
@@ -117,7 +117,6 @@ class HTTPPersistentConnection(object):
 			path = location[2]
 			if location[4]: path = path + '?' + location[4]
 			
-			print location[0]
 			if location[0].lower() != self.scheme_name:
 				raise errors.HTTPRedirectError, ('Only HTTP connections are supported',
 					res.getheader('Location'))
-- 
GitLab