8000 Increase timeout for CN Open Data download · unho/python-stdnum@5cdef0d · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5cdef0d

Browse files
committed
Increase timeout for CN Open Data download
It seems that raw.githubusercontent.com can be extremely slow.
1 parent 580d6e0 commit 5cdef0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update/cn_loc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# update/cn_loc.py - script to fetch data from the CN Open Data community
44
#
55
# Copyright (C) 2014-2015 Jiangge Zhang
6-
# Copyright (C) 2015-2019 Arthur de Jong
6+
# Copyright (C) 2015-2022 Arthur de Jong
77
#
88
# This library is free software; you can redistribute it and/or
99
# modify it under the terms of the GNU Lesser General Public
@@ -58,7 +58,7 @@ def fetch_data():
5858
"""Return the data from tab-separated revisions as one code/name dict."""
5959
data_collection = OrderedDict()
6060
for revision in data_revisions:
61-
response = requests.get('%s/raw/release/%s.txt' % (data_url, revision), timeout=30)
61+
response = requests.get('%s/raw/release/%s.txt' % (data_url, revision), timeout=120)
6262
response.raise_for_status()
6363
if response.ok:
6464
print('%s is fetched' % revision, file=sys.stderr)

0 commit comments

Comments
 (0)
0