Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 committed Dec 16, 2024
1 parent 535e641 commit 0fa23cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/services/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def delete_credentials(
session = trans.sa_session

user_credentials = self._user_credentials(trans, user_id=user_id, group_id=group_id)
rows_to_be_deleted = {item for uc in user_credentials for item in uc if type(item) != UserCredentials}
rows_to_be_deleted = {item for uc in user_credentials for item in uc if not isinstance(item, UserCredentials)}
for row in rows_to_be_deleted:
session.delete(row)
with transaction(session):
Expand Down

0 comments on commit 0fa23cc

Please sign in to comment.