Skip to content

ValueError: too many values to unpack (expected 4) #862

Description

@Luci2015

Description
When loading users from directory, some may have a comma in their username or email.
This causes the tool to throw:
"ValueError: too many values to unpack (expected 4)"
in the get_from_index function when unpacking the user_key tuple.

The fix is to check the input for email and username values, but the issue is that the error does not specify which user is the one having the issue.
Need a more verbose error.

Environment

  • UST version: all
  • OS type and version: all

Activity

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

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