fix: Avoid exception when output is missing for exports
This commit is contained in:
parent
c54beb76d3
commit
0ecc925373
@ -97,7 +97,10 @@ def cli():
|
||||
diffs = Instance.list_diffs(local_blocklist, remote_blocklist)
|
||||
Instance.apply_blocks_from_diff(diffs, args.server, args.token, args.no_delete)
|
||||
elif args.action == "export":
|
||||
export_blocklist_toml(remote_blocklist, args.output)
|
||||
if not args.output:
|
||||
print("Export currently requires to pass --output as well")
|
||||
else:
|
||||
export_blocklist_toml(remote_blocklist, args.output)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user