Skip to content

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

@Luci2015

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

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