Skip to content

Commit

Permalink
Re-add exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 17, 2024
1 parent c0085f6 commit d724b19
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -5306,20 +5306,18 @@ def build_arr_instances(self):
call_cls = RadarrAPI
else:
call_cls = None
# try:
managed_object = Arr(name, self, client_cls=call_cls)
self.groups.add(name)
self.uris.add(managed_object.uri)
self.managed_objects[managed_object.category] = managed_object
self.arr_categories.add(managed_object.category)
# except KeyError as e:
# self.logger.critical("Key Error: %s", e)
# except ValueError as e:
# self.logger.exception("Value Error: %s", e)
# except SkipException:
# continue
# except (OSError, TypeError) as e:
# self.logger.exception(e)
try:
managed_object = Arr(name, self, client_cls=call_cls)
self.groups.add(name)
self.uris.add(managed_object.uri)
self.managed_objects[managed_object.category] = managed_object
self.arr_categories.add(managed_object.category)
except ValueError as e:
self.logger.exception("Value Error: %s", e)
except SkipException:
continue
except (OSError, TypeError) as e:
self.logger.exception(e)
if FREE_SPACE != "-1" and AUTO_PAUSE_RESUME:
managed_object = FreeSpaceManager(self.arr_categories, self)
self.managed_objects["FreeSpaceManager"] = managed_object
Expand Down

0 comments on commit d724b19

Please sign in to comment.