canvasapi icon indicating copy to clipboard operation
canvasapi copied to clipboard

arrow.ParserError does not exist in file canvas_object.py

Open w-mcilhagga opened this issue 6 months ago • 0 comments

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?

w-mcilhagga avatar Feb 08 '24 13:02 w-mcilhagga