genvid.toolbox.ConsulTemplateInvalidUseOfFlag

class genvid.toolbox.ConsulTemplateInvalidUseOfFlag

Bases: ConsulTemplateError

Indicate a flag parameter was used with a non-trivial value.

Flags should only be used with a value of None or a bool denoting whether it should be used. Any other value will trigger that exception.

New in version 1.22.0.

__init__(option_name: str, option_value)

Initialize the exception.

Parameters:
  • option_name – Name of the unknown option used.

  • option_value – Value that was used with the option.