We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d916963 commit 7146ef3Copy full SHA for 7146ef3
1 file changed
src/mss/base.py
@@ -238,7 +238,8 @@ def primary_monitor(self) -> Monitor:
238
"""
239
monitors = self.monitors
240
if len(monitors) <= 1: # Only the "all monitors" entry or empty
241
- raise ScreenShotError("No monitor found.")
+ msg = "No monitor found."
242
+ raise ScreenShotError(msg)
243
244
for monitor in monitors[1:]: # Skip the "all monitors" entry at index 0
245
if monitor.get("is_primary", False):
0 commit comments