Skip to content

Commit

Permalink
parser: support empty list
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Mar 13, 2023
1 parent d7d37df commit 21a93b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camkes/parser/fdtQueryEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def resolve(self, args):
result = self.engine.query(args)

resolved = {}
if not len(result):
if (len(args) > 0) and not len(result):
raise ParseError("DTB query has no results.")

query_results = []
Expand Down

0 comments on commit 21a93b2

Please sign in to comment.