Skip to content

ValueError raised before MachineIdError or DatacenterIdError #8

@Akliph

Description

@Akliph

In generator.py when initializing a TimeSeed object --

 self.machine_id = self._resolve_machine_id(machine_id)
 self.datacenter_id = self._resolve_datacenter_id(datacenter_id)

is called which will raise a ValueError before a MachineIdError or DatacenterIdError is raised if the explicit_id's are out of bounds. The only case I figure where the latter two exceptions are raised are if the override id exceeds the bounds maybe? I'm not sure if this is the intended behavior but I thought it'd be worth bringing attention to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions