From 684dcbb23471b17313b0173023a1e7fe71802449 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 1 Jul 2021 15:53:32 -0700 Subject: [PATCH] Log the exception which caused download failures. --- fdroidapk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fdroidapk.py b/fdroidapk.py index 3ec9b7c..457d008 100644 --- a/fdroidapk.py +++ b/fdroidapk.py @@ -85,8 +85,8 @@ def fpk_argparse(args): try: apk_url = _retry_request(lambda: get_apk_url(package)) - except Exception: - log.error('%s was unable to get apk url.', package) + except Exception as exc: + log.error('%s was unable to get apk url (%s).', package, exc) return_status = 1 continue @@ -111,8 +111,8 @@ def fpk_argparse(args): callback_progress=downloady.Progress2, timeout=30, )) - except Exception: - log.error('%s was unable to download apk.', package) + except Exception as exc: + log.error('%s was unable to download apk (%s).', package, exc) return_status = 1 continue