-
Notifications
You must be signed in to change notification settings - Fork 84
🚇🩹 Fix test CI workflow #129
Changes from all commits
6895426
c6b8cfc
66b2473
7b43145
f6fedf0
4d50cff
4b310e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import json | ||
| from typing import TYPE_CHECKING | ||
|
|
||
| import click | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -304,7 +304,7 @@ def _execute_download_job(self, media_item: MediaItem, episode_number: str): | |||||
| timeout=self.app_config.general.desktop_notification_duration | ||||||
| * 60, | ||||||
| ) | ||||||
| except: | ||||||
| except: # noqa: E722 | ||||||
| pass | ||||||
| logger.info(message) | ||||||
| else: | ||||||
|
|
@@ -325,7 +325,7 @@ def _execute_download_job(self, media_item: MediaItem, episode_number: str): | |||||
| app_icon=app_icon, | ||||||
| timeout=self.app_config.general.desktop_notification_duration * 60, | ||||||
| ) | ||||||
| except: | ||||||
| except: # noqa: E722 | ||||||
|
||||||
| except: # noqa: E722 | |
| except Exception: |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,7 +44,7 @@ def success(self, message: str, details: Optional[str] = None) -> None: | |||||||||||
| timeout=self.app_config.general.desktop_notification_duration * 60, | ||||||||||||
| ) | ||||||||||||
| return | ||||||||||||
| except: | ||||||||||||
| except: # noqa: E722 | ||||||||||||
| logger.warning("Using rofi without plyer for notifications") | ||||||||||||
|
||||||||||||
| logger.warning("Using rofi without plyer for notifications") | |
| except ImportError: | |
| logger.warning("plyer not installed; using rofi without desktop notifications") | |
| except Exception as e: | |
| logger.warning(f"Failed to send desktop notification: {e}") |
Copilot
AI
Aug 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare except clauses is a poor practice as it catches all exceptions including system exit and keyboard interrupts. Consider catching specific exceptions like ImportError or Exception instead.
| except: # noqa: E722 | |
| except (ImportError, Exception): |
Copilot
AI
Aug 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare except clauses is a poor practice as it catches all exceptions including system exit and keyboard interrupts. Consider catching specific exceptions like ImportError or Exception instead.
| except: # noqa: E722 | |
| except Exception: |
Copilot
AI
Aug 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare except clauses is a poor practice as it catches all exceptions including system exit and keyboard interrupts. Consider catching specific exceptions like ImportError or Exception instead.
| except: # noqa: E722 | |
| except Exception: |
Copilot
AI
Aug 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare except clauses is a poor practice as it catches all exceptions including system exit and keyboard interrupts. Consider catching specific exceptions like ImportError or Exception instead.
| except: # noqa: E722 | |
| except (ImportError, Exception): |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -66,7 +66,7 @@ def choose(self, prompt, choices, *, preview=None, header=None): | |||||
| app_icon=str(ICON_PATH), | ||||||
| timeout=2 * 60, | ||||||
| ) | ||||||
| except: | ||||||
| except: # noqa: E722 | ||||||
|
||||||
| except: # noqa: E722 | |
| except Exception: |
Copilot
AI
Aug 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare except clauses is a poor practice as it catches all exceptions including system exit and keyboard interrupts. Consider catching specific exceptions like ImportError or Exception instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using bare except clauses is a poor practice as it catches all exceptions including system exit and keyboard interrupts. Consider catching specific exceptions like
ImportErrororExceptioninstead.