From fc2c6e6aa08f1243f9b154eaaa500101f208c3dd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Sep 2020 22:56:54 +0100 Subject: [PATCH] Create accounts directory before qrcode gets created --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index ca39a6623..c4c929ca2 100644 --- a/daemon.py +++ b/daemon.py @@ -10515,6 +10515,10 @@ def runDaemon(blogsInstance: bool, mediaInstance: bool, serverAddress = ('', proxyPort) pubHandler = partial(PubServer) + if not os.path.isdir(baseDir + '/accounts'): + print('Creating accounts directory') + os.mkdir(baseDir + '/accounts') + try: httpd = EpicyonServer(serverAddress, pubHandler) except Exception as e: