From 29f1b19bba5ff7a3a5d2f23b15bdec0de3a3c658 Mon Sep 17 00:00:00 2001 From: mst Date: Sun, 20 Oct 2024 01:04:14 +0300 Subject: [PATCH] hotfix --- CHANGELOG.md | 6 ++++++ app.py | 3 +++ constants.py | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3cd027..b46ebb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.6.1 + +### Fixes + +* emojis settings in admin panel causing a server error + ## 1.6.0 ### New features diff --git a/app.py b/app.py index dae7978..f85d1b8 100644 --- a/app.py +++ b/app.py @@ -237,6 +237,9 @@ def customize(): @admin_bp.route('/emojis/', methods=['GET', 'POST']) @loginRequired def emojis(): + if not os.path.exists(const.emojiPath): + os.makedirs(const.emojiPath) + packs = func.listEmojiPacks() if packs: for pack in packs: diff --git a/constants.py b/constants.py index c227a19..fcbe644 100644 --- a/constants.py +++ b/constants.py @@ -8,6 +8,6 @@ configFile = 'config.json' faviconDir = Path.cwd() / 'static' / 'icons' / 'favicon' emojiPath = Path.cwd() / 'static' / 'emojis' appName = 'CatAsk' -version = '1.6.0' +version = '1.6.1' # id (identifier) is to be interpreted as described in https://semver.org/#spec-item-9 version_id = '-alpha'