Skip to content

Soft handling of situations where a configuration file or alias does not exist #22

Closed
@obervinov

Description

@obervinov
  • configs.json does not exist

    =========================== short test summary info ============================
    ERROR tests/test_create_inline_markup.py::test_extract_token - FileNotFoundError: [Errno 2] No such file or directory: 'configs/messages.json'
    ERROR tests/test_create_inline_markup.py::test_create_inline_markup_3 - FileNotFoundError: [Errno 2] No such file or directory: 'configs/messages.json'
    ERROR tests/test_create_inline_markup.py::test_create_inline_markup_4 - FileNotFoundError: [Errno 2] No such file or directory: 'configs/messages.json'
  • alias not found
    just send error in the log message

  • configs.json is empty

    =========================== short test summary info ============================
    ERROR tests/test_create_inline_markup.py::test_extract_token - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    ERROR tests/test_create_inline_markup.py::test_create_inline_markup_3 - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    ERROR tests/test_create_inline_markup.py::test_create_inline_markup_4 - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions