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:
commit
71f92fde90
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue