Skip to content

Commit

Permalink
try except
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdai committed Sep 24, 2024
1 parent 0156d5a commit 58175e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arc_finetuning_st/streamlit/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ def saved_finetuning_examples(self) -> List[str]:

@property
def task_file_names(self) -> List[str]:
return listdir(self._data_path)
try:
return listdir(self._data_path)
except FileNotFoundError:
return []

def radio_format_task_name(self, selected_task: str) -> str:
if selected_task in self.saved_finetuning_examples:
Expand Down

0 comments on commit 58175e8

Please sign in to comment.