We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b676f90 commit 565e50aCopy full SHA for 565e50a
bam_masterdata/cli/cli.py
@@ -593,11 +593,14 @@ def run_parser(
593
help="openBIS collection name",
594
)
595
def parser(files_parser, project_name, collection_name):
596
- parser_map = {
597
- "MyParser1": MyParser1(),
598
- } # could be an import of a dictionary with parsers
+ parser_map = {} # could be an import of a dictionary with parsers
599
parse_file_dict = {}
600
for parser_key, filepath in files_parser:
+ if parser_key not in parser_map:
+ logger.warning(
601
+ f"Parser {parser_key} not found. Available parsers: {', '.join(parser_map.keys())}"
602
+ )
603
+ continue
604
parser_cls = parser_map[parser_key]
605
parse_file_dict[parser_cls].append(filepath)
606
run_parser(
0 commit comments