You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The find_child_element function throughs an error when the XML response from the CAS server contains comment objects.
As a workaround I added a test before the line referenced above to check if the element is not a comment.
def find_child_element(elm, child_local_name):
"""
Find an XML child element by local tag name.
"""
for n in range(len(elm)):
child_elm = elm[n]
if not isinstance(child_elm, etree._Comment):
tag = etree.QName(child_elm)
if tag.localname == child_local_name:
return child_elm
return None
I am not sure if this is the best way to fix this issue.
The text was updated successfully, but these errors were encountered:
jhub_cas_authenticator/jhub_cas_authenticator/cas_auth.py
Line 259 in ffe254d
The find_child_element function throughs an error when the XML response from the CAS server contains comment objects.
As a workaround I added a test before the line referenced above to check if the element is not a comment.
I am not sure if this is the best way to fix this issue.
The text was updated successfully, but these errors were encountered: