Update new config file structure

This commit is contained in:
Jylpah committed 2020-10-25 16:36:22 +02:00
1 parent c1009d0ad5
commit 8a1bf00f44
1 file changed
+3 -3
+3 -3
View File
@@ -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)