rberenguel / bear-note-graph

Generate a graphviz visualisation of your Bear notes. It also has a partial Markdown parser, because why not
39 stars 2 forks source link

list(note)[0]["id"] IndexError: list index out of range #3

Closed ValentinWalter closed 4 years ago

ValentinWalter commented 4 years ago

Getting this in 0.1.3

INFO - Copying Bear database to /tmp/BearExportTemp.sqlite
INFO - Fetching notes from (the copy of the) database
INFO - Fetched 340 notes from the (copy of) the Bear database
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/bear-note-graph", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bear_note_graph/main.py", line 122, in main
    generate_graph(graph_format)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/bear_note_graph/generate.py", line 106, in generate_graph
    note_edge["dst"] = list(note)[0]["id"]
IndexError: list index out of range
rberenguel commented 4 years ago

Thanks @ValentinWalter This one looks weird, I'll investigate later!

rberenguel commented 4 years ago

@ValentinWalter this should be fixed in version 0.1.4 (or at least the error message should tell what the issue is exactly now)

ValentinWalter commented 4 years ago

Yep, it's a different error now.

rberenguel commented 4 years ago

@ValentinWalter that is only marginally better, but moving forward :D