🧹 Ignore blank except ruff rule

This commit is contained in:
s-weigand
2025-08-17 13:14:32 +02:00
parent f6fedf0500
commit 4d50cffd86
3 changed files with 9 additions and 9 deletions

View File

@@ -304,7 +304,7 @@ class DownloadService:
timeout=self.app_config.general.desktop_notification_duration
* 60,
)
except:
except: # noqa: E722
pass
logger.info(message)
else:
@@ -325,7 +325,7 @@ class DownloadService:
app_icon=app_icon,
timeout=self.app_config.general.desktop_notification_duration * 60,
)
except:
except: # noqa: E722
pass
logger.error(
message,

View File

@@ -44,7 +44,7 @@ class FeedbackService:
timeout=self.app_config.general.desktop_notification_duration * 60,
)
return
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
if details:
console.print(f"{main_msg}\n[dim]{details}[/dim]")
@@ -70,7 +70,7 @@ class FeedbackService:
timeout=self.app_config.general.desktop_notification_duration * 60,
)
return
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
if details:
console.print(f"{main_msg}\n[dim]{details}[/dim]")
@@ -97,7 +97,7 @@ class FeedbackService:
timeout=self.app_config.general.desktop_notification_duration * 60,
)
return
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
if details:
console.print(f"{main_msg}\n[dim]{details}[/dim]")
@@ -123,7 +123,7 @@ class FeedbackService:
timeout=self.app_config.general.desktop_notification_duration * 60,
)
return
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
if details:
console.print(f"{main_msg}\n[dim]{details}[/dim]")
@@ -179,7 +179,7 @@ class FeedbackService:
timeout=self.app_config.general.desktop_notification_duration * 60,
)
return
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
click.pause(f"{icon}{message}...")

View File

@@ -66,7 +66,7 @@ class RofiSelector(BaseSelector):
app_icon=str(ICON_PATH),
timeout=2 * 60,
)
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
sys.exit(1)
@@ -132,7 +132,7 @@ class RofiSelector(BaseSelector):
app_icon=str(ICON_PATH),
timeout=2 * 60,
)
except:
except: # noqa: E722
logger.warning("Using rofi without plyer for notifications")
# HACK: force exit if no input
sys.exit(1)