From b9d4d8cc4eb384fd8be72036f785d43fa7a70488 Mon Sep 17 00:00:00 2001 From: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:42:55 -0400 Subject: [PATCH] more lcean up --- pipestat/helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipestat/helpers.py b/pipestat/helpers.py index 3c6d1050..e0756668 100644 --- a/pipestat/helpers.py +++ b/pipestat/helpers.py @@ -300,7 +300,7 @@ def link_files_in_directory(output_dir: str): try: os.mkdir(linkdir) - except: + except FileExistsError: pass for root, dirs, files in os.walk(project_dir): @@ -340,9 +340,10 @@ def link_files_from_results_file(data, results_dir): project_dir = os.path.abspath(results_dir) linkdir = os.path.join(project_dir, "link_results") items = ["sample", "project"] + try: os.mkdir(linkdir) - except: + except FileExistsError: pass for i in items: