Skip to content

Commit c796e2e

Browse files
authored
Merge pull request #5 from anantajit/main
Fixed future warning in `comm.py`
2 parents b52cd1e + a7680f8 commit c796e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)