Skip to content

Commit 5f54896

Browse files
committed
Fix XML element truth value deprecation warning
1 parent d944648 commit 5f54896

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

users/authBackend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _parse_response(self, xml):
6969
success = tree.find(
7070
"./cas:authenticationSuccess", namespaces=self.XML_NAMESPACES
7171
)
72-
if not success:
72+
if success is None:
7373
failure = tree.find(
7474
"./cas:authenticationFailure", namespaces=self.XML_NAMESPACES
7575
)

0 commit comments

Comments
 (0)