Description
When using the IR extraction parser in the decompress script, an AttributeError is raised because the --dataset argument was not added to the ir_extraction_parser, only to the json_extraction_parser.
Error
AttributeError: 'Namespace' object has no attribute 'dataset'
Steps to Reproduce
- Run the decompress script with IR extraction:
./decompress.sh i --orig-file-id=4577ad28-f615-4d37-8e7f-cd35dbb2324c 1
- The script fails at line 188 in
handle_extract_stream_cmd when trying to access parsed_args.dataset
Root Cause
In PR #1050, the --dataset argument was only added to the json_extraction_parser but not to the ir_extraction_parser. However, the handle_extract_stream_cmd function tries to access parsed_args.dataset regardless of which parser was used.
Expected Behavior
The ir_extraction_parser should also have the --dataset argument added, or the code should handle cases where the dataset argument is not available.
Related
Description
When using the IR extraction parser in the decompress script, an AttributeError is raised because the
--datasetargument was not added to their_extraction_parser, only to thejson_extraction_parser.Error
Steps to Reproduce
./decompress.sh i --orig-file-id=4577ad28-f615-4d37-8e7f-cd35dbb2324c 1handle_extract_stream_cmdwhen trying to accessparsed_args.datasetRoot Cause
In PR #1050, the
--datasetargument was only added to thejson_extraction_parserbut not to their_extraction_parser. However, thehandle_extract_stream_cmdfunction tries to accessparsed_args.datasetregardless of which parser was used.Expected Behavior
The
ir_extraction_parsershould also have the--datasetargument added, or the code should handle cases where the dataset argument is not available.Related