mirror of
https://github.com/AgathaSorceress/mstdn-ebooks.git
synced 2024-11-20 03:25:53 +01:00
print warning after printing cfg file location
This commit is contained in:
parent
8db84a5656
commit
ac411e15a9
4
main.py
4
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",
|
||||
|
Loading…
Reference in New Issue
Block a user