Skip to content

Commit 391ab38

Browse files
Fix autocorrection
1 parent 56fc652 commit 391ab38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/drink.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def order_drink(drink, retry=True):
119119
return order_drink(drink, retry=False)
120120

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

0 commit comments

Comments
 (0)