print warning after printing cfg file location
This commit is contained in:
parent
8db84a5656
commit
ac411e15a9
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -35,12 +35,12 @@ try:
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
open(args.cfg, "w").write("{}")
|
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://"):
|
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']))
|
print("Site must begin with 'https://' or 'http://'. Value '{}' is invalid - try 'https://{}' instead.".format(cfg['site']))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
print("Using {} as configuration file".format(args.cfg))
|
|
||||||
|
|
||||||
if "client" not in cfg:
|
if "client" not in cfg:
|
||||||
print("No application info -- registering application with {}".format(cfg['site']))
|
print("No application info -- registering application with {}".format(cfg['site']))
|
||||||
client_id, client_secret = Mastodon.create_app("mstdn-ebooks",
|
client_id, client_secret = Mastodon.create_app("mstdn-ebooks",
|
||||||
|
|
Loading…
Reference in a new issue