From e9e1f5930ca63d2824834bb944cc860e9506d20b Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 20 Nov 2021 20:40:39 -0800 Subject: [PATCH] Log the whole traceback, not just exception headline. --- fdroidapk.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fdroidapk.py b/fdroidapk.py index cb1a9b0..cc62c2e 100644 --- a/fdroidapk.py +++ b/fdroidapk.py @@ -22,6 +22,7 @@ import bs4 import requests import sys import tenacity +import traceback from voussoirkit import betterhelp from voussoirkit import downloady @@ -102,7 +103,8 @@ def fpk_argparse(args): try: apk_url = get_apk_url(package) except Exception as exc: - log.error('%s was unable to get apk url (%s).', package, exc) + exc = traceback.format_exc() + log.error('%s was unable to get apk url:\n%s', package, exc) return_status = 1 continue @@ -124,7 +126,8 @@ def fpk_argparse(args): download_file(apk_url, this_dest) download_count += 1 except Exception as exc: - log.error('%s was unable to download apk (%s).', package, exc) + exc = traceback.format_exc() + log.error('%s was unable to download apk:\n%s', package, exc) return_status = 1 continue