Skip to content

In offline mode the random run names sometimes have invalid characters #829

Description

@alahiff

Example I just had: jet-albariño which gives:

simvue.exception.SimvueRunError: `Run.name` Validation:`.

In the server I use this currently:

import randomname
import unicodedata


def generate_name() -> str:
    """
    Generate a nice name, replacing non-ASCII characters which are
    sometimes generated by randonname
    """
    return (
        unicodedata.normalize("NFKD", randomname.get_name())
        .encode("ascii", "ignore")
        .decode("ascii")
    )

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin progressWork is being done to resolve this issue

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions