You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The behaviour of early exit is fine (we can't fallback to another option if it's ambiguous). We probably want to default to None, do truthy check , then print a a friendlier message to the user or raise a more meaningful error. This will be useful in the future, to do something like email the user when their meal could not be booked.
The text was updated successfully, but these errors were encountered:
next()
is used with no default, this will raiseStopIteration
if not matched:mealpy/mealpy/mealpy.py
Lines 88 to 93 in a580ab5
The behaviour of early exit is fine (we can't fallback to another option if it's ambiguous). We probably want to default to
None
, do truthy check , then print a a friendlier message to the user or raise a more meaningful error. This will be useful in the future, to do something like email the user when their meal could not be booked.The text was updated successfully, but these errors were encountered: