Skip to content

Improve error messages for invalid named colors #528

Closed
@hx2A

Description

@hx2A

Discussion: #525

Two things need to happen:

  • py5.css4_colors and py5.xkcd_colors need to use __getattr__() or something to capture invalid colors and give a better response
  • The _hex_converter() function in decorators.py need to throw a new exception when a string argument is not found instead of returning None

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