Skip to content

Commit

Permalink
Fix autocorrection
Browse files Browse the repository at this point in the history
  • Loading branch information
marzipankaiser committed Jul 28, 2022
1 parent 56fc652 commit 391ab38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drink.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def order_drink(drink, retry=True):
return order_drink(drink, retry=False)

if not r.ok:
if not r.text == "Unknown beverage":
if not r.text == "Not Found" and r.status_code == 404:
print(str(r.status_code) + ": " + r.text, file=sys.stderr)
sys.exit(1)

Expand Down

0 comments on commit 391ab38

Please sign in to comment.