Skip to content

Commit

Permalink
do not parse if no file present
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Oct 8, 2024
1 parent 0b5fef1 commit 7589758
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dp_creator_ii/app/dataset_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def csv_path():

@reactive.calc
def csv_fields_calc():
return read_field_names(csv_path_calc())
path = csv_path_calc()
if path is None:
return None
return read_field_names(path)

@render.text
def csv_fields():
Expand Down

0 comments on commit 7589758

Please sign in to comment.