Skip to content

Commit

Permalink
fix remove_duplicate usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Nov 6, 2024
1 parent 10d5915 commit 8a93a67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyprland/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def _run_plugin_handler(self, plugin: Plugin, full_name: str, params: tupl
self.log.exception("%s::%s(%s) failed:", plugin.name, full_name, params)
await notify_error(f"Pypr error {plugin.name}::{full_name}: {e}")

@remove_duplicate(names=["active_window", "active_windowv2"])
@remove_duplicate(names=["event_activewindow", "event_activewindowv2"])
async def _call_handler(self, full_name: str, *params: str, notify: str = "") -> bool:
"""Call an event handler with params."""
handled = False
Expand Down Expand Up @@ -295,7 +295,7 @@ async def _abort() -> None:
full_name = f"run_{cmd}"

if PYPR_DEMO:
os.system(f"notify-send -t 4000 '{data}'") # noqa: ASYNC102
os.system(f"notify-send -t 4000 '{data}'") # noqa: ASYNC221

if not await self._call_handler(full_name, *args, notify=cmd):
self.log.warning("No such command: %s", cmd)
Expand Down
2 changes: 1 addition & 1 deletion pyprland/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version."""

VERSION = "2.4.3-4"
VERSION = "2.4.3-5"

0 comments on commit 8a93a67

Please sign in to comment.