Log the exception which caused download failures.
This commit is contained in:
parent
2f925f60c5
commit
684dcbb234
1 changed files with 4 additions and 4 deletions
|
@ -85,8 +85,8 @@ def fpk_argparse(args):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
apk_url = _retry_request(lambda: get_apk_url(package))
|
apk_url = _retry_request(lambda: get_apk_url(package))
|
||||||
except Exception:
|
except Exception as exc:
|
||||||
log.error('%s was unable to get apk url.', package)
|
log.error('%s was unable to get apk url (%s).', package, exc)
|
||||||
return_status = 1
|
return_status = 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ def fpk_argparse(args):
|
||||||
callback_progress=downloady.Progress2,
|
callback_progress=downloady.Progress2,
|
||||||
timeout=30,
|
timeout=30,
|
||||||
))
|
))
|
||||||
except Exception:
|
except Exception as exc:
|
||||||
log.error('%s was unable to download apk.', package)
|
log.error('%s was unable to download apk (%s).', package, exc)
|
||||||
return_status = 1
|
return_status = 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue