From a7680f8928e34a6f6fca7eeda5048a360fe2bccb Mon Sep 17 00:00:00 2001 From: Anantajit Subrahmanya Date: Wed, 3 Sep 2025 19:36:41 +0800 Subject: [PATCH] Fixed future warning --- src/bqapi/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bqapi/comm.py b/src/bqapi/comm.py index fd9034e..3e7f6c1 100644 --- a/src/bqapi/comm.py +++ b/src/bqapi/comm.py @@ -376,7 +376,7 @@ def init(self, bisque_url, credentials=None, moduleuri=None, create_mex=False): auth_service = self.service("auth_service") logins = auth_service.login_providers(render="xml") login_type = None - if logins is not None and logins[0]: + if logins is not None and len(logins) > 0: login_type = logins[0].get("type") if login_type == "cas": return self.init_cas(