Frank on Nostr: #Python question. Noob trying to expand an existing script. Script extracts lines ...
#Python question. Noob trying to expand an existing script.
Script extracts lines from a JSON file. It works for items that have a line called "title".
Not all items have a line "notes" but some do.
How to I extract the "notes" line if it is there, but not have the script fail when it is not?
It's in the gtjt.py script of this repo: https://github.com/thethales/GoogleTasksJSONtoTXT
Script extracts lines from a JSON file. It works for items that have a line called "title".
Not all items have a line "notes" but some do.
How to I extract the "notes" line if it is there, but not have the script fail when it is not?
It's in the gtjt.py script of this repo: https://github.com/thethales/GoogleTasksJSONtoTXT