mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-02-04 11:07:48 -08:00
🧹 Ignore blank except ruff rule
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}...")
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user