AnkiNoteTemplate/antp/__main__.py
Ren Tatsumoto afd62cff14 add main
2021-04-20 14:15:57 +03:00

11 lines
253 B
Python

from urllib.error import URLError
from antp.template_picker import export_note_type
try:
export_note_type()
except URLError:
print("Couldn't connect. Make sure Anki is open and AnkiConnect is installed.")
except Exception as ex:
print(ex)