canvasapi
canvasapi copied to clipboard
arrow.ParserError does not exist in file canvas_object.py
Bug
when calling course = canvas.get_course(id) the following occurs:
File "path-to\canvasapi\canvas_object.py", line 69, in set_attributes
except arrow.ParserError:
AttributeError: module 'arrow' has no attribute 'ParserError
Fix
On line 69 of file 'canvas_object.py' it says
except arrow.ParserError:
Changing it to
except arrow.parser.ParserError:
fixes the bug
Query?
Bug may arise because of different arrow versions?