fix(debug): if request fails, prints proper output
This commit is contained in:
parent
83ec148b85
commit
470ec46f6e
2
main.py
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user