Skip to content

Conversation

@ianardee
Copy link
Contributor

Fix for financial doc in CLI

Related Issue

fixes #60

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@ianardee ianardee requested review from fg-mindee and fharper and removed request for fg-mindee February 18, 2022 12:52
Copy link
Contributor

@fharper fharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got this error:

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 97, in call_endpoint
    print(getattr(parsed_data, doc_type))
AttributeError: 'DocumentResponse' object has no attribute 'financial_doc'

when running ./mindee-cli.sh financiald -i path ../datasets/invoices/1008e67d-01d5-41c8-9791-4a21892fb717.pdf

Copy link
Contributor

@fharper fharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ianardee ianardee merged commit 86b8e5c into main Feb 21, 2022
@ianardee ianardee deleted the fix-cli-financial branch February 21, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error on financial document

3 participants