From ac411e15a9cee47ce02caa189869eba15d518045 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Tue, 10 Mar 2020 16:54:00 +1000 Subject: [PATCH] print warning after printing cfg file location --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 918f734..0d296b2 100755 --- a/main.py +++ b/main.py @@ -35,12 +35,12 @@ try: except FileNotFoundError: open(args.cfg, "w").write("{}") +print("Using {} as configuration file".format(args.cfg)) + if not cfg['site'].startswith("https://") and not cfg['site'].startswith("http://"): print("Site must begin with 'https://' or 'http://'. Value '{}' is invalid - try 'https://{}' instead.".format(cfg['site'])) sys.exit(1) -print("Using {} as configuration file".format(args.cfg)) - if "client" not in cfg: print("No application info -- registering application with {}".format(cfg['site'])) client_id, client_secret = Mastodon.create_app("mstdn-ebooks",