Skip to content

Commit

Permalink
refactor: remove unnecissary exception
Browse files Browse the repository at this point in the history
  • Loading branch information
marksie1988 committed Apr 18, 2023
1 parent 9efb00c commit baabe59
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pyarr/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,14 +518,7 @@ def add_series(
"searchForMissingEpisodes": search_for_missing_episodes,
}

response: dict[str, Any] = self._post("series", self.ver_uri, data=series)
for item in response:
if "errorMessage" in item:
raise Exception(item)
else:
continue

return response
return self._post("series", self.ver_uri, data=series)

# PUT /series
def upd_series(self, data: JsonObject) -> JsonObject:
Expand Down

0 comments on commit baabe59

Please sign in to comment.