Skip to content

'AttributeError: 'Namespace' object has no attribute 'dev'' #362

Description

@KyleKing

Bug Metadata

  • Version of extract_msg: 0.41.0
  • Your python version: Python 3.10 and 3.8
  • How did you launch extract_msg?
    • My command line or
    • I used the extract_msg package

Describe the bug

It looks like --dev wasn't completely removed in 0.41.0 (https://github.com/TeamMsgExtractor/msg-extractor/releases/tag/v0.41.0), there is still a check of options.dev, which returns an error

Traceback

Traceback (most recent call last):
  File "../extract-msg/0.41.0/bin/extract_msg", line 8, in <module>
    sys.exit(main())
  File "../extract-msg/0.41.0/venv/lib/python3.10/site-packages/extract_msg/__main__.py", line 17, in main
    args = utils.getCommandArgs(sys.argv[1:])
  File "../extract-msg/0.41.0/venv/lib/python3.10/site-packages/extract_msg/utils.py", line 390, in getCommandArgs
    if options.dev or options.fileLogging:
AttributeError: 'Namespace' object has no attribute 'dev'

From:

if options.dev or options.fileLogging:
options.verbose = options.verbose or 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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