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",