From 94af40cf40b49e73011ddadd60ed42767c046572 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Wed, 3 Jan 2024 12:30:52 +0000 Subject: [PATCH] Fix creation of directory logs/ thanks roughnecks --- slixfeed/xmpp/process.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slixfeed/xmpp/process.py b/slixfeed/xmpp/process.py index 31e375a..b7c9510 100644 --- a/slixfeed/xmpp/process.py +++ b/slixfeed/xmpp/process.py @@ -757,6 +757,8 @@ async def message(self, message): data_dir = get_default_dbdir() if not os.path.isdir(data_dir): os.mkdir(data_dir) + if not os.path.isdir(data_dir + '/logs/'): + os.mkdir(data_dir + '/logs/') utility.log_as_markdown( current_time(), os.path.join(data_dir, "logs", jid), jid, message_text)