Skip to content

Commit

Permalink
Adjust code
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 16, 2024
1 parent 385cb7f commit c0085f6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -5306,20 +5306,20 @@ 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 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)
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 c0085f6

Please sign in to comment.