Skip to content

Commit

Permalink
Ensure existence of video processor before setting it to None
Browse files Browse the repository at this point in the history
  • Loading branch information
healthonrails committed Feb 29, 2024
1 parent 596619d commit 688f33c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion annolid/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,8 @@ def closeFile(self, _value=False):
self.stop_prediction_flag = False
self.imageData = None
self.frame_loader = LoadFrameThread()
self.video_processor.cutie_processor = None
if self.video_processor is not None:
self.video_processor.cutie_processor = None
self.video_processor = None

def toolbar(self, title, actions=None):
Expand Down

0 comments on commit 688f33c

Please sign in to comment.