fix(debug): if request fails, prints proper output

This commit is contained in:
Yandrik 2024-02-05 15:07:25 +01:00
parent 83ec148b85
commit 470ec46f6e
1 changed files with 1 additions and 1 deletions

View File

@ -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