1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Merge remote-tracking branch 'origin/hermes' into hermes

This commit is contained in:
Louis Vézina 2020-04-17 11:51:21 -04:00
commit 71f92fde90

View file

@ -52,7 +52,7 @@ import logging
# create random api_key if there's none in config.ini
if not settings.auth.apikey:
from binascii import hexlify
settings.auth.apikey = str(hexlify(os.urandom(16)))
settings.auth.apikey = hexlify(os.urandom(16)).decode()
with open(os.path.join(args.config_dir, 'config', 'config.ini'), 'w+') as handle:
settings.write(handle)