Fix event initialization issues
- Remove None assignment for download_progress event in AniworldLoader - Remove None assignments for download_status and scan_status events in SeriesApp - Events library requires events to not be initialized to None - Verified logging configuration is properly set to INFO level
This commit is contained in:
@@ -154,8 +154,6 @@ class SeriesApp:
|
||||
|
||||
# Initialize events
|
||||
self._events = Events()
|
||||
self._events.download_status = None
|
||||
self._events.scan_status = None
|
||||
|
||||
self.loaders = Loaders()
|
||||
self.loader = self.loaders.GetLoader(key="aniworld.to")
|
||||
|
||||
@@ -101,8 +101,6 @@ class AniworldLoader(Loader):
|
||||
# Events: download_progress is triggered with progress dict
|
||||
self.events = Events()
|
||||
|
||||
self.events.download_progress = None
|
||||
|
||||
def subscribe_download_progress(self, handler):
|
||||
"""Subscribe a handler to the download_progress event.
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user