Szwendacz99 / BookStack-Python-exporter

Customizable script for exporting notes from BookStack through API. Export Pages, Chapters, Books, attachments and images.
MIT License
23 stars 3 forks source link

AttributeError: 'NoneType' object has no attribute 'get_name' #1

Closed rn232 closed 1 year ago

rn232 commented 2 years ago

Hello,

When I try to execute the script, I have this output :

File "C:\Users\user\Desktop\BookStack-Python-exporter-main\exporter.py", line 129, in <module>
    f"using Book \"{books.get(parent_id).get_name()}\" as a parent.")
AttributeError: 'NoneType' object has no attribute 'get_name'

Do you know how to fix it?

Thank you!

Szwendacz99 commented 2 years ago

Hello,

sorry for not answering for so long, but I was busy lately. This seems like it was run on older version of BookStack, that might give different values through api. So to try find reason of the problem, I might need the version of BookStack instance on which exporter was working. Also I will be publishing releases with description on which BookStack version the release was tested, because small changes in api might totally break this exporter.

Szwendacz99 commented 1 year ago

Seem to be fixed for a longer time now, closing.