From 655f6d3ddfac6beae4f2efc515784451315d7701 Mon Sep 17 00:00:00 2001 From: James Dearlove Date: Sat, 9 Mar 2024 13:15:28 +1000 Subject: [PATCH] Remember to check style challenge (very hard) --- uqcsbot/dominos_coupons.py | 4 +++- uqcsbot/holidays.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/uqcsbot/dominos_coupons.py b/uqcsbot/dominos_coupons.py index 445df8b..66ac758 100644 --- a/uqcsbot/dominos_coupons.py +++ b/uqcsbot/dominos_coupons.py @@ -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}" ) diff --git a/uqcsbot/holidays.py b/uqcsbot/holidays.py index 42e9ff6..a31618c 100644 --- a/uqcsbot/holidays.py +++ b/uqcsbot/holidays.py @@ -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):