mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 10:17:05 +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.read(FILE_CONFIG)
|
||||
try:
|
||||
if 'OPTIONS' in config.sections():
|
||||
configOptions = config['OPTIONS']
|
||||
OPT_WORKERS_N = configOptions.getint('opt_uploader_workers', OPT_WORKERS_N)
|
||||
if 'UPLOADER' in config.sections():
|
||||
configUploader = config['UPLOADER']
|
||||
OPT_WORKERS_N = configUploader.getint('opt_workers', OPT_WORKERS_N)
|
||||
except (KeyError, configparser.NoSectionError) as err:
|
||||
bu.error(exception=err)
|
||||
|
||||
|
||||
Reference in new issue
Block a user