Skip to content
Snippets Groups Projects
Commit 9d6df95c authored by Janet Goldstein's avatar Janet Goldstein
Browse files

WS-179: subtask #6 -- remove argparse namespace dependencies in classes

this should fix broken "unit test workflow" in pipeline
parent 411b87b6
No related branches found
No related tags found
1 merge request!184WS-179: subtask #6 -- remove argparse namespace dependencies in classes
Pipeline #1268 passed
......@@ -8,7 +8,7 @@ from pathlib import Path
# pylint: disable=C0103, E0402, E0611, R0902, R0903, W0703, W1203
from datafetcher.errors import MissingSettingsException, NoProfileException
from datafetcher.errors import MissingSettingsException, NoProfileException, FileErrorException
from datafetcher.project_fetcher import ParallelFetcher
from .locations_report import LocationsReport
......@@ -63,9 +63,7 @@ class DataFetcher:
raise MissingSettingsException("output directory option is missing")
output_dir = Path(self.output_dir)
if not output_dir.is_dir() or not path_is_accessible(output_dir):
raise MissingSettingsException(
f"output location {self.output_dir} inaccessible or not found"
)
raise FileErrorException(f"output location {self.output_dir} inaccessible or not found")
if args.location_file is not None:
if args.product_locator is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment