Skip to content

Error when running the list_of_contents.py program for a reporting event containing invalid methodId values #224

@ASL-rmarshall

Description

@ASL-rmarshall

The following error is raised when the list_of_contents.py program in the utilities/python folder is run for a reporting event that contains invalid methodId values:

TypeError: can only concatenate str (not "int") to str

The error occurs because there are missing parentheses on line 433 of the program. The error can be resolved by adding the parentheses as indicated below:

                            f"{'  '*(level+1)}Method: {analysis.methodId} (**INVALID METHOD ID**)\n"
                                    ^       ^

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