From 470ec46f6ea1fb0d77fb2cb895cfd9562f1ec6e4 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Mon, 5 Feb 2024 15:07:25 +0100 Subject: [PATCH] fix(debug): if request fails, prints proper output --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f2d73d7..e844715 100644 --- a/main.py +++ b/main.py @@ -82,7 +82,7 @@ def main(): cards, meta = dict_to_anki.image_to_anki(to_process, do_ocr=ocr, lang=args.ocr) if not cards: - print("Error processing! Response: " + meta) + print("Error processing! Response: " + str(meta)) user_response = input("Retry? [y/N] > ") if user_response != 'y' or 'yes' or 'Y' or 'YES' or 'Yes': break_outer = True