python-jamf icon indicating copy to clipboard operation
python-jamf copied to clipboard

JamfRecordNotFound class missing attribute

Open bonallure opened this issue 1 year ago • 1 comments

Hello, it looks like the JamfRecordNotFound Error class is missing the attribute response. This causes it to not be properly returned when a record is not found, producing a type error instead.

raise exceptions.JamfRecordNotFound(response, "Not Found")
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TypeError: Error.init() takes from 1 to 2 positional arguments but 3 were given

bonallure avatar Jun 12 '24 15:06 bonallure