Skip to content

Error on financial document #60

@fharper

Description

@fharper

Prerequisites

Put an X between the brackets on this line if you have done all of the following:

  • Reproduced the problem or exposed a new need
  • Checked the github existing issues

Description

Got a non graceful error message when trying to use the CLI for financial type of document

Steps to Reproduce

run ./mindee-cli.sh financial -i path file.pdf

Expected behavior:

Return information about the financial document I used.

Actual behavior:

Traceback (most recent call last):
  File "/Users/fharper/.pyenv/versions/3.9.7/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Users/fharper/.pyenv/versions/3.9.7/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-python/mindee/__main__.py", line 185, in <module>
    call_endpoint(parse_args())
  File "/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-python/mindee/__main__.py", line 68, in call_endpoint
    client = _ots_client(args, info)
  File "/Users/fharper/Dropbox/Mac (3)/Documents/code/mindee/sdk-python/mindee/__main__.py", line 44, in _ots_client
    func = getattr(client, f"config_{args.product_name}")
AttributeError: 'Client' object has no attribute 'config_financial'

Reproduces how often:

Always

Versions

2.0.1

Metadata

Metadata

Assignees

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