From 49502ac13beff3b0761f0fcf961cb36a7e8ad357 Mon Sep 17 00:00:00 2001 From: Kepka Ludovic Date: Thu, 21 Aug 2025 08:07:41 +0200 Subject: [PATCH] Extraction code humble bundle pour une meileur lecture --- discordbot/humblebundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/humblebundle.py b/discordbot/humblebundle.py index 2f46fcb..f3e0ee7 100644 --- a/discordbot/humblebundle.py +++ b/discordbot/humblebundle.py @@ -35,7 +35,7 @@ async def checkHumbleBundleAndNotify(bot: Client): if _isEnable() : try : bundle = _callHexas() - if _isNotAlreadyNotified(bundle) : + if bundle != None and _isNotAlreadyNotified(bundle) : message = _formatMessage(bundle) await bot.get_channel(ConfigurationHelper().getIntValue('humble_bundle_channel')).send(message) db.session.add(GameBundle(id=bundle['id'], name=bundle['name'], json = json.dumps(bundle)))