2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

Handle 404 in download-translations, fix #143

This commit is contained in:
Pratik Vyas 2015-08-25 12:47:38 -07:00
parent 284ff1fddc
commit b594c3334d

View File

@ -541,7 +541,10 @@ def post_upgrade(from_ver, to_ver, bench='.'):
setup_procfile(bench=bench)
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():
pool = multiprocessing.Pool(8)