Directory.queryEndpointService crashes
During execution of this method, the subroutine raise_error_from_response
is executed twice. The second time it is called with the parameter thing
which is of type dict and not requests.Response
. It seems like the direct call to raise_error_from_response
within queryEndpointService
can be removed.