Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check on adding created_date fails when checking for modified_date #8

Closed
Tomodachi94 opened this issue Aug 25, 2021 · 2 comments
Closed

Comments

@Tomodachi94
Copy link
Owner

@Tomodachi94 Tomodachi94 commented Aug 25, 2021

User lifesign on the Forums reported an error.

Traceback

$ python3 obsidian-metadata-handler/created.py -p "./test-vault"
test-vault/A file.md
Traceback (most recent call last):
  File "/Users/gaofeng/Code/opensource/obsidian-metadata-handler/obsidian-metadata-handler/created.py", line 30, in <module>
    if file["modified_date"] == True:
  File "/usr/local/lib/python3.9/site-packages/frontmatter/__init__.py", line 275, in __getitem__
    return self.metadata[name]
KeyError: 'modified_date'

(cc @lifesign, I think you are the same person…)

@Tomodachi94
Copy link
Owner Author

@Tomodachi94 Tomodachi94 commented Aug 25, 2021

I was able to reproduce the error, with the same result. I'll start working on a patch.

@Tomodachi94
Copy link
Owner Author

@Tomodachi94 Tomodachi94 commented Dec 10, 2021

Closing this issue, as script has been deprecated and stability isn't guaranteed. Please see #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant