Properly separate line choices

This commit is contained in:
Christopher Teutsch 2019-06-26 11:34:24 +02:00
parent fd202ffe09
commit d2fde3791a
Signed by: iwonder
GPG Key ID: 0EE33D788D50130D

View File

@ -96,7 +96,7 @@ try:
if cfg['crawl']['station_id'] is not None:
USE_STATION_ID = cfg['crawl'].getint('station_id')
else:
sys.exit(f"Please specify a station_id in the [crawl] section of {args.config}")
sys.exit('Please specify a station_id in the [crawl] section of {}'.format(args.config))
USE_LINES = cfg['crawl']['use_lines'].split(',')
except (IndexError, configparser.NoOptionError, configparser.NoSectionError):
sys.exit("There is something wrong with the configuration file. Exiting.")