duffel-api-python icon indicating copy to clipboard operation
duffel-api-python copied to clipboard

Make similar exceptions use the same params

Open richcooper95 opened this issue 3 years ago • 0 comments

Describe the bug Here passes through the empty list of passengers, but here passes through the number (0) - but both are InvalidNumberOfX errors.

To Reproduce n/a

Expected behavior It’d be good to get some consistency around what’s returned in similar Exception types.

System (please complete the following information): n/a

Additional context n/a

richcooper95 avatar Feb 02 '22 17:02 richcooper95