Skip to content

Commit

Permalink
Remember to check style challenge (very hard)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDearlove committed Mar 9, 2024
1 parent b7def14 commit 655f6d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion uqcsbot/dominos_coupons.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ async def dominoscoupons(
try:
coupons = _get_coupons(number_of_coupons, ignore_expiry, keywords.split())
except RequestException as error:
resp_content = error.response.content if error.response else "No response error given."
resp_content = (
error.response.content if error.response else "No response error given."
)
logging.warning(
f"Could not connect to dominos coupon site ({COUPONESE_DOMINOS_URL}): {resp_content}"
)
Expand Down
4 changes: 3 additions & 1 deletion uqcsbot/holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ def get_holiday_page() -> bytes | None:
return response.content
except RequestException as e:
resp_content = e.response.content if e.response else "No response error given."
logging.warning(f"(RequestException) Could not fetch {HOLIDAY_URL}: {resp_content}")
logging.warning(
f"(RequestException) Could not fetch {HOLIDAY_URL}: {resp_content}"
)


class Holidays(commands.Cog):
Expand Down

0 comments on commit 655f6d3

Please sign in to comment.