What is Nostr?
Frank /
npub1l4n…j0d0
2024-06-23 18:35:54

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
Author Public Key
npub1l4nunra4jpqmt9d9j9psyx0ss9tas8hnxkc2g36k0pwvcnr8sttsv5j0d0