Skip to content

Commit

Permalink
Fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Wehrmann committed Dec 18, 2024
1 parent 8a37c96 commit c0070dc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,7 @@ def _first_setup(self):
"POST", f'{API_URL}/{url}', headers=headers, data=payload).json()['data']

if (len(data) == 0):
raise SourceArgumentNotFound(
[], "No data found for the provided arguments.")
raise Exception("No data found for the provided arguments.")

self.icons = {label["garbage_label_id"]: label["garbage_label_title"]
for label in data['labels']}
Expand Down

0 comments on commit c0070dc

Please sign in to comment.