gdcvault: Fix flakes warnings

This commit is contained in:
François Revol 2013-03-24 01:54:13 +01:00 committed by Florent
commit 4b8e65c7e3
2 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ class GDCVaultBrowser(BaseBrowser):
# but is required to handle cases like 1013422@gdcvault
self.set_handle_redirect(False)
try:
req = self.open_novisit(url)
self.open_novisit(url)
#headers = req.info()
except HTTPError, e:
# print e.getcode()

View file

@ -165,8 +165,8 @@ class VideoPage(BasePage):
#print self.browser.addheaders
self.browser.set_handle_redirect(False)
try:
req = self.browser.open_novisit(video.url)
headers = req.info()
self.browser.open_novisit(video.url)
# headers = req.info()
# if headers.get('Content-Type', '') == 'text/html' and headers.get('Content-Length', '') == '2':
# print 'BUG'
@ -217,7 +217,7 @@ class VideoPage(BasePage):
# print "asking for redirect on '%s'" % (video.url)
self.browser.set_handle_redirect(False)
try:
req = self.browser.open_novisit(video.url)
self.browser.open_novisit(video.url)
except HTTPError, e:
if e.getcode() == 302 and hasattr(e, 'hdrs'):
video.url = unicode(e.hdrs['Location'])