mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-27 07:14:33 -08:00
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -22,6 +22,11 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dbus-python build dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install libdbus-1-dev libglib2.0-dev
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v3
|
||||
with:
|
||||
|
||||
@@ -299,7 +299,7 @@ class DownloadService:
|
||||
timeout=self.app_config.general.desktop_notification_duration
|
||||
* 60,
|
||||
)
|
||||
except:
|
||||
except: # noqa: E722
|
||||
pass
|
||||
logger.info(message)
|
||||
else:
|
||||
@@ -320,7 +320,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