Skip to content

Commit

Permalink
Fix scheduler callback check
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiRigal committed Sep 7, 2022
1 parent fe1ed18 commit 478a21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def alert_listener_error_callback(self, error: Exception):
self.must_stop = True

def scheduler_callback(self):
if self.plex or not self.plex.is_alive:
if self.plex is None or not self.plex.is_alive:
return
logger.info("Starting scheduler task")
self.plex.start_deep_analysis()
Expand Down

0 comments on commit 478a21b

Please sign in to comment.