Skip to content

Empty or incorrect config causes crashes instead of error messages #270

@frol

Description

@frol

There are all sorts of possible errors with configs, but none are handled at this point.

Legal cases that cause crashes when they shouldn't:

  1. Empty invoke.yaml breaks on merge_dict because update data is None.
  2. Empty invoke.json raises ValueError in json module itself.

NOTE: When invoke.yaml contains one word (without colon), yaml parser returns a str object, which is also not a dict.

NOTE: Error handling is not implemented in Invoke yet, see #269. So it should get addressed first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions