Skip to content

Commit

Permalink
Raise error if searching with incorrect parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
akim-ruslanov committed Jul 6, 2022
1 parent 81a272a commit 181c27f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pycue/opencue/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,8 @@ def _setOptions(criteria, options):
criteria.first_result = int(v)
elif k == "include_finished":
criteria.include_finished = v
elif len(k) == 0:
return criteria
else:
raise Exception("Criteria for search does not exist")
return criteria

0 comments on commit 181c27f

Please sign in to comment.