enex2notion: [Bug]: KeyError: '#text'
enex2notion version
0.1.3
What OS are you using?
MacOS
OS Version / Linux distribution
12.0.1
Bug description
Did a very large import.
Tried debugging the last note after which it failed. Could not reproduce.
What went wrong? And how can I resume from where it crashed without adding duplicates?
Log excerpt
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/enex2notion", line 8, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/cli.py", line 100, in main
cli(sys.argv[1:])
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/cli.py", line 93, in cli
enex_uploader.upload(enex_file)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/cli.py", line 49, in upload
for note in iter_notes(enex_file):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/enex_parser.py", line 71, in iter_notes
yield _process_note(_etree_to_dict(elem)["note"])
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/enex_parser.py", line 115, in _process_note
resources = [_convert_resource(r) for r in note_resources]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/enex_parser.py", line 115, in <listcomp>
resources = [_convert_resource(r) for r in note_resources]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/enex2notion/enex_parser.py", line 140, in _convert_resource
data_bin = base64.b64decode(resource_raw["data"]["#text"])
KeyError: '#text'
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Since web clips are now supported, there is no need for making “skipped list.” 😃