Skip to content

Commit

Permalink
Handle scenarios when background running functions return None or no …
Browse files Browse the repository at this point in the history
…value
  • Loading branch information
healthonrails committed Feb 28, 2024
1 parent 2570354 commit de35f2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions annolid/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,8 @@ def predict_from_next_frame(self,
self.pred_worker.start.emit()

def lost_tracking_instance(self, message):
if message is None:
return
message, current_frame_index = message.split("#")
current_frame_index = int(current_frame_index)
QtWidgets.QMessageBox.information(
Expand Down

0 comments on commit de35f2a

Please sign in to comment.