hysts HF staff commited on
Commit
de8155f
1 Parent(s): 49f5f36

Add error handling

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -488,7 +488,8 @@ def add_tracking_points(
488
 
489
 
490
  def add_drag(tracking_points):
491
- tracking_points.append([])
 
492
  return {tracking_points_var: tracking_points}
493
 
494
 
 
488
 
489
 
490
  def add_drag(tracking_points):
491
+ if not tracking_points or tracking_points[-1]:
492
+ tracking_points.append([])
493
  return {tracking_points_var: tracking_points}
494
 
495