mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +00:00
Handle 404 in download-translations, fix #143
This commit is contained in:
parent
284ff1fddc
commit
b594c3334d
@ -541,7 +541,10 @@ def post_upgrade(from_ver, to_ver, bench='.'):
|
|||||||
setup_procfile(bench=bench)
|
setup_procfile(bench=bench)
|
||||||
|
|
||||||
def update_translations_p(args):
|
def update_translations_p(args):
|
||||||
update_translations(*args)
|
try:
|
||||||
|
update_translations(*args)
|
||||||
|
except requests.exceptions.HTTPError:
|
||||||
|
print 'Download failed for', args[0], args[1]
|
||||||
|
|
||||||
def download_translations_p():
|
def download_translations_p():
|
||||||
pool = multiprocessing.Pool(8)
|
pool = multiprocessing.Pool(8)
|
||||||
|
Loading…
Reference in New Issue
Block a user