Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sweep_layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def run_app(

def main() -> None:
args = parse_args()

if args.leaves <= 0:
print("ERROR: --leaves must be > 0.", file=sys.stderr)
sys.exit(1)
app_path = Path(args.app_path)
if not app_path.is_file():
print(f"ERROR: app.py not found at {app_path}", file=sys.stderr)
Expand Down