masaccio / numbers-parser

Python module for parsing Apple Numbers .numbers files
MIT License
201 stars 14 forks source link

IndexError: Can't open Numbers file after turning on "Collaboration". #66

Closed daddytigerflying closed 9 months ago

daddytigerflying commented 9 months ago

Describe the bug When a Numbers file turn on "Collaboration", the error IndexError: list index out of range will be thrown.

To Reproduce You can create a Numbers file and turn on 'Collaboration". path = '/Users/user/Desktop/sss.numbers' # the Numbers file after turning on "Collaboration". doc = Document(path)

Expected behavior Open the Numbers file as normal.

Attachments

Additional information I am using Numbers v13.1 and Python 3.9.

image
masaccio commented 9 months ago

Thanks for that - I removed the check that is making this fall over as I could not find any files that triggered the code. A fix for this is now published.