From 5a6c65774bf44ce4b2dadf3523a9125aa851561a Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 11 Aug 2019 17:27:55 -0700 Subject: Fix bug when thumbnail directory doesn't exist where first downloaded thumbnail is made a directory --- youtube/subscriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/subscriptions.py') diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index 3a0ef49..8937a96 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -553,7 +553,7 @@ def serve_subscription_thumbnail(thumbnail): try: f = open(thumbnail_path, 'wb') except FileNotFoundError: - os.makedirs(thumbnail_path, exist_ok = True) + os.makedirs(thumbnails_directory, exist_ok = True) f = open(thumbnail_path, 'wb') f.write(image) f.close() -- cgit v1.2.3