Skip to content

Commit a7680f8

Browse files
Anantajit SubrahmanyaAnantajit Subrahmanya
authored andcommitted
Fixed future warning
1 parent b52cd1e commit a7680f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bqapi/comm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def init(self, bisque_url, credentials=None, moduleuri=None, create_mex=False):
376376
auth_service = self.service("auth_service")
377377
logins = auth_service.login_providers(render="xml")
378378
login_type = None
379-
if logins is not None and logins[0]:
379+
if logins is not None and len(logins) > 0:
380380
login_type = logins[0].get("type")
381381
if login_type == "cas":
382382
return self.init_cas(

0 commit comments

Comments
 (0)