masaccio / numbers-parser

Python module for parsing Apple Numbers .numbers files
MIT License
208 stars 15 forks source link

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

Closed daddytigerflying closed 1 year ago

daddytigerflying commented 1 year 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 1 year 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.