Skip to content

Commit

Permalink
Increase timeout limit
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Barbosa <[email protected]>
Signed-off-by: Macartur Sousa <[email protected]>
Signed-off-by: Sergio Oliveira <[email protected]>
  • Loading branch information
alexandreab committed Oct 7, 2015
1 parent 31fe7d4 commit a9b201c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colab_noosfero/data_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_json_data(self, api_url, page, pages=1000):
url = self.get_request_url(api_url, per_page=pages,
page=page)
try:
data = urllib2.urlopen(url, timeout=10)
data = urllib2.urlopen(url, timeout=1000)
json_data = json.load(data)
except urllib2.URLError:
LOGGER.exception("Connection timeout: " + url)
Expand Down

1 comment on commit a9b201c

@seocam
Copy link
Member

@seocam seocam commented on a9b201c Oct 7, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexandreab this timeout seems a bit too much. 3 minutes should be enough for now.

Please sign in to comment.