diff --git a/functions.py b/functions.py index 1c17e2c..be21819 100644 --- a/functions.py +++ b/functions.py @@ -443,6 +443,7 @@ def emoji(md): def listEmojis() -> list: emojis = [] emoji_base_path = Path.cwd() / 'static' / 'emojis' + os.makedirs(emoji_base_path, exist_ok=True) # Iterate over files that are directly in the emoji base path (not in subdirectories) for file in emoji_base_path.iterdir():