Skip to content

IR extraction parser missing --dataset argument causes AttributeError #1200

@coderabbitai

Description

@coderabbitai

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

  1. Run the decompress script with IR extraction: ./decompress.sh i --orig-file-id=4577ad28-f615-4d37-8e7f-cd35dbb2324c 1
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions