Create accounts directory before qrcode gets created

main
Bob Mottram 2020-09-02 22:56:54 +01:00
parent 9a1de6d012
commit fc2c6e6aa0
1 changed files with 4 additions and 0 deletions

View File

@ -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: