fix: Avoid exception when input is missing for diff and deploy
This commit is contained in:
parent
d9d3f02fda
commit
6d2a4d82b4
@ -96,7 +96,11 @@ def cli():
|
|||||||
blocklist_filename = args.input_file
|
blocklist_filename = args.input_file
|
||||||
else:
|
else:
|
||||||
blocklist_filename = "../blocklist.toml"
|
blocklist_filename = "../blocklist.toml"
|
||||||
local_blocklist = load_blocklist_file(blocklist_filename)
|
try:
|
||||||
|
local_blocklist = load_blocklist_file(blocklist_filename)
|
||||||
|
except FileNotFoundError:
|
||||||
|
print("Local blocklist file was not found. Make sure to specify it's location via -i")
|
||||||
|
exit()
|
||||||
|
|
||||||
if args.action == "diff":
|
if args.action == "diff":
|
||||||
Instance.show_diffs(local_blocklist, remote_blocklist)
|
Instance.show_diffs(local_blocklist, remote_blocklist)
|
||||||
|
Loading…
Reference in New Issue
Block a user