From 4693f2f0eb69dfb78af560abd7e20675db7dde2d Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Wed, 4 Jun 2025 09:58:13 -0400 Subject: [PATCH] Fixed 'max() iterable argument is empty' --- libs/computer-server/computer_server/diorama/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/computer-server/computer_server/diorama/draw.py b/libs/computer-server/computer_server/diorama/draw.py index ac90106e..9fce809f 100644 --- a/libs/computer-server/computer_server/diorama/draw.py +++ b/libs/computer-server/computer_server/diorama/draw.py @@ -377,7 +377,7 @@ def draw_desktop_screenshot(app_whitelist: List[str] = None, all_windows: List[D dock_orientation = "side" if dock_bounds["width"] < dock_bounds["height"] else "bottom" - menubar_length = max(item["bounds"]["x"] + item["bounds"]["width"] for item in menubar_items) + menubar_length = max(item["bounds"]["x"] + item["bounds"]["width"] for item in menubar_items) if menubar_items else 0 # Calculate bounds of app windows app_bounds = {