pyoverleaf
pyoverleaf copied to clipboard
Tags don't have color attribute
When trying to run the program, it failed with:
File "/home/nathan/.local/lib/python3.10/site-packages/pyoverleaf/__main__.py", line 38, in list_projects_and_files
projects = api.get_projects()
File "/home/nathan/.local/lib/python3.10/site-packages/pyoverleaf/_webapi.py", line 183, in get_projects
tag = Tag.from_data(tag_data)
File "/home/nathan/.local/lib/python3.10/site-packages/pyoverleaf/_webapi.py", line 46, in from_data
color=data["color"],
KeyError: 'color'
Inspecting the contents of the tags variable, none of the tags had a color attribute. I got it to work by replacing the line
color=data["color"],
with
color=0,
just as a hack for now, and things seem to work.