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

KeyError: 'photos' #2

Open
ZakirJaafar opened this issue Feb 6, 2022 · 1 comment
Open

KeyError: 'photos' #2

ZakirJaafar opened this issue Feb 6, 2022 · 1 comment

Comments

@ZakirJaafar
Copy link

Unsure if the script completed the function fully. I can see some folders created but the terminal displayed this:

Traceback (most recent call last):
File "/Users/zakirjaafar/Downloads/temp 3 DayOne-JSON-to-MD-main/app.py", line 175, in
ProcessZips(inpath, outpath)
File "/Users/zakirjaafar/Downloads/temp 3 DayOne-JSON-to-MD-main/app.py", line 166, in ProcessZips
processJson("temp/" + zipnameClean + "/" + jsonname ,jsonnameClean, zipnameClean, outpath)
File "/Users/zakirjaafar/Downloads/temp 3 DayOne-JSON-to-MD-main/app.py", line 98, in processJson
momentIn = entry['photos']
KeyError: 'photos'

Anything I should check with the file output?

@ze-kel
Copy link
Owner

ze-kel commented Feb 10, 2022

Try this branch, it should work.
https://github.com/ze-kel/DayOne-JSON-to-MD/tree/issue-2

Although the error implies that you have some media type in your entries that my script doesn't support. You might get a better result using one of the forks, where some people significantly improved on my code.

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

No branches or pull requests

2 participants