Maboroshy / Note-Station-to-markdown

The cross-platform script that converts notes from Synology Note Station to markdown files
Apache License 2.0
240 stars 51 forks source link

Fix for crash with a return None for note_data.get('attachment', '') #5

Closed sweisgerber closed 6 years ago

sweisgerber commented 6 years ago

=> Fix is checking for None and skipping attachments for None type.

Exception Log:

Traceback (most recent call last):
  File "nsx2md.py", line 100, in <module>
    for attachment in note_data.get('attachment', ''):
sweisgerber commented 6 years ago

Thanks for the script, it worked like a charm, except for this minor bug :)