Permalink
Browse files

Revert "Merge pull request #161 from casschin/get-response-code-timeout"

This reverts commit bbb784d, reversing
changes made to 14dd4aa.
  • Loading branch information...
1 parent bbb784d commit eaa61ac9511d5518587c8ba0e1baa149dca06333 @retornam retornam committed Feb 4, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 pages/page.py
View
@@ -15,7 +15,6 @@
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import ElementNotVisibleException
-from requests.exceptions import Timeout
http_regex = re.compile('https?://((\w+\.)+\w+\.\w+)')
@@ -101,8 +100,5 @@ def wait_for_ajax(self):
def get_response_code(self, url):
# return the response status
requests_config = {'max_retries': 5}
- try:
- r = requests.get(url, verify=False, allow_redirects=True, config=requests_config, timeout=self.timeout)
- return r.status_code
- except Timeout:
- return 408
+ r = requests.get(url, verify=False, config=requests_config)
+ return r.status_code

0 comments on commit eaa61ac

Please sign in to comment.