Skip to content

Commit 7146ef3

Browse files
authored
fix: Ruff (#482)
1 parent d916963 commit 7146ef3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mss/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ def primary_monitor(self) -> Monitor:
238238
"""
239239
monitors = self.monitors
240240
if len(monitors) <= 1: # Only the "all monitors" entry or empty
241-
raise ScreenShotError("No monitor found.")
241+
msg = "No monitor found."
242+
raise ScreenShotError(msg)
242243

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

0 commit comments

Comments
 (0)