2021-04-20 09:27:48 +00:00
|
|
|
from urllib.error import URLError
|
|
|
|
|
2021-04-20 09:32:53 +00:00
|
|
|
from antp.exporter import export_note_type
|
2021-04-20 09:27:48 +00:00
|
|
|
|
|
|
|
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)
|