Skip to content
Merged
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
3 changes: 2 additions & 1 deletion src/mss/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ def primary_monitor(self) -> Monitor:
"""
monitors = self.monitors
if len(monitors) <= 1: # Only the "all monitors" entry or empty
raise ScreenShotError("No monitor found.")
msg = "No monitor found."
raise ScreenShotError(msg)

for monitor in monitors[1:]: # Skip the "all monitors" entry at index 0
if monitor.get("is_primary", False):
Expand Down