From 989ca5f1fb5b3c80e12fb0e54f75d0d075c93f7d Mon Sep 17 00:00:00 2001
From: Krishna-singhal <65902764+Krishna-Singhal@users.noreply.github.com>
Date: Thu, 10 Feb 2022 16:06:37 +0530
Subject: [PATCH] fix for directory not exists

---
 plugins/logo_maker.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/logo_maker.py b/plugins/logo_maker.py
index 49c7895e7..5a9082c1f 100644
--- a/plugins/logo_maker.py
+++ b/plugins/logo_maker.py
@@ -41,6 +41,8 @@ async def logo_maker(text: str, keyword: str = "name"):
 
 async def download(uri: str, file_name: str):
     """ download a uri """
+    if not os.path.exists("temp_logos/"):
+        os.mkdir("temp_logos/")
     async with \
             aiofiles.open(file_name, "wb+") as file, \
             aiohttp.ClientSession(headers=HEADERS) as session, \