Skip to content

Commit

Permalink
Update nailgun/entities.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gaurav Talreja <gauravtalreja1@gmail.com>
  • Loading branch information
adarshdubey-star and Gauravtalreja1 authored Jan 9, 2023
1 parent 9f685f4 commit 6b9c66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ def run(self, synchronous=True, **kwargs):
if 'search_query' not in kwargs['data'] and 'bookmark_id' not in kwargs['data']:
raise KeyError('Provide either search_query or bookmark_id value')
if 'targeting_type' not in kwargs['data']:
raise KeyError('Provide targeting_type')
raise KeyError('Provide targeting_type value')
kwargs['data'] = {'job_invocation': kwargs['data']}
response = client.post(self.path('base'), **kwargs)
response.raise_for_status()
Expand Down

0 comments on commit 6b9c66e

Please sign in to comment.