parent
acd935f44a
commit
374cfdf127
1 changed files with 1 additions and 1 deletions
2
cc/xkcd
2
cc/xkcd
|
@ -13,7 +13,7 @@ else:
|
||||||
print("Comic not found.")
|
print("Comic not found.")
|
||||||
elif req.ok:
|
elif req.ok:
|
||||||
title = req.json()["title"]
|
title = req.json()["title"]
|
||||||
print(f"XKCD {e}: {title} (https://xkcd.com/{e})")
|
print(f"xkcd {e}: {title} (https://xkcd.com/{e})")
|
||||||
else:
|
else:
|
||||||
print("Couldn't fetch: status code {req.status_code}")
|
print("Couldn't fetch: status code {req.status_code}")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue