obsidiantools
obsidiantools copied to clipboard
UnicodeDecodeError doesn't provide file details
While using vault = otools.Vault(obsidian_vault).connect().gather()
to connect to my vault, it runs then gives a UnicodeDecodeError
. I like how it provides errors about YAML header problems, but this one is hard to debug.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 90: invalid start byte
There isn't enough information in the error to know where the file loading failed. Is there a DEBUG flag or way to include the filename in error?
Another way this could work better is by allowing me to load a sample of my Obsidian vault. Perhaps a .gather(top=1000)
would help with troubleshooting. I could also write the rest of my code before waiting 10 minutes for an error. I've got 23k notes in my vault.
Here's my version output:
Name: obsidiantools
Version: 0.10.0
I'm trying to attach to an Obsidian Vault, but I use the attache as an integrity check. I assume this UTF-8
error is a problem in my vault.
A test vault of documentation works fine. Any other ideas to troubleshoot?