Skip to content

Commit d531877

Browse files
author
Foxlet
committed
Return NoneType if no API - youtube.py
Fixes a bug where no message is returned in the YouTube module if no GDC Key is set.
1 parent d3f3b9d commit d531877

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/youtube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def get_video_description(video_id):
7070
@hook.on_start()
7171
def load_key(bot):
7272
global dev_key
73-
dev_key = bot.config.get("api_keys", {}).get("google_dev_key")
73+
dev_key = bot.config.get("api_keys", {}).get("google_dev_key", None)
7474

7575

7676
@hook.regex(youtube_re)

0 commit comments

Comments
 (0)