From d2fde3791af6402259d6afdce52f3baf8cbb2c63 Mon Sep 17 00:00:00 2001 From: Christopher Teutsch Date: Wed, 26 Jun 2019 11:34:24 +0200 Subject: [PATCH] Properly separate line choices --- monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index 825b5ba..cb38bc7 100755 --- a/monitor.py +++ b/monitor.py @@ -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.")