From 7589758f97f855125f3afff0dc580f13dc643610 Mon Sep 17 00:00:00 2001 From: Chuck McCallum Date: Tue, 8 Oct 2024 12:08:28 -0400 Subject: [PATCH] do not parse if no file present --- dp_creator_ii/app/dataset_panel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dp_creator_ii/app/dataset_panel.py b/dp_creator_ii/app/dataset_panel.py index 04a9acf..57464e3 100644 --- a/dp_creator_ii/app/dataset_panel.py +++ b/dp_creator_ii/app/dataset_panel.py @@ -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():