From 0f41c6f0b7596b62b27f8ee3c65351ec4c18e1bd Mon Sep 17 00:00:00 2001 From: Dawid Rejowski Date: Sun, 11 Sep 2022 18:47:46 +0200 Subject: [PATCH] Create data folder on start --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 492ce50..98cbeb2 100644 --- a/main.py +++ b/main.py @@ -14,6 +14,7 @@ from telegram_exporter import TelegramExporter async def main(): + os.makedirs('data', exist_ok=True) if not os.path.exists('config.yaml'): shutil.copy('config.yaml.example', 'config.yaml') logging.warning('Please fill in config.yaml file, then restart the bot')