Skip to content

Commit

Permalink
Handle if all_stmts are None
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Apr 3, 2024
1 parent 2b20a43 commit 6617b7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bioagents/msa/local_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def get_statements_from_query(self, query, **ignored_kwargs):
else:
raise EntityError("Could not form a usable query from given "
"constraints.")
logger.info('Found %d statements from query' % len(all_stmts))
logger.info('Found %d statements from query'
% 0 if all_stmts is None else len(all_stmts))
self.statements = all_stmts
return self

Expand Down

0 comments on commit 6617b7a

Please sign in to comment.