Skip to content

Commit

Permalink
Fix empty SSA bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HHousen committed Aug 3, 2023
1 parent a4ab75e commit ecd3516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lecture2notes/end_to_end/figure_detection.py
Expand Up @@ -395,7 +395,7 @@ def all_in_folder(

def add_figures_to_ssa(ssa, figures_path):
# If the SSA contains frame numbers
if "frame_number" in ssa[0].keys():
if ssa and "frame_number" in ssa[0].keys():
mapping = frame_number_filename_mapping(figures_path)

for idx, slide in enumerate(ssa):
Expand Down

0 comments on commit ecd3516

Please sign in to comment.