mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 02:07:06 +02:00
Update new config file structure
This commit is contained in:
1 parent
c1009d0ad5
commit
8a1bf00f44
1 file changed
+3
-3
@@ -43,9 +43,9 @@ async def main(argv):
|
|||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(FILE_CONFIG)
|
config.read(FILE_CONFIG)
|
||||||
try:
|
try:
|
||||||
if 'OPTIONS' in config.sections():
|
if 'UPLOADER' in config.sections():
|
||||||
configOptions = config['OPTIONS']
|
configUploader = config['UPLOADER']
|
||||||
OPT_WORKERS_N = configOptions.getint('opt_uploader_workers', OPT_WORKERS_N)
|
OPT_WORKERS_N = configUploader.getint('opt_workers', OPT_WORKERS_N)
|
||||||
except (KeyError, configparser.NoSectionError) as err:
|
except (KeyError, configparser.NoSectionError) as err:
|
||||||
bu.error(exception=err)
|
bu.error(exception=err)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user