From 748bffe33b64a9ad1e3a3e237c63a8c78c6982ec Mon Sep 17 00:00:00 2001 From: Muhammed Adediran <125326384+Admuad@users.noreply.github.com> Date: Thu, 5 Sep 2024 06:18:45 +0100 Subject: [PATCH] Update __init__.py --- bot/utils/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py index ab1440d..dd83695 100644 --- a/bot/utils/__init__.py +++ b/bot/utils/__init__.py @@ -6,5 +6,6 @@ import os -if not os.path.exists(path='sessions'): - os.mkdir(path='sessions') +#There should be no argument attached to the os.path.exists() +if not os.path.exists('sessions'): + os.makedirs('sessions')