From fd4fdd82c480be8d41fe53ab5e14689e5564b519 Mon Sep 17 00:00:00 2001 From: Carson Coder Date: Mon, 13 Oct 2025 20:59:11 -0400 Subject: [PATCH] Fix how i added the argument to runhook and _runhook --- copyparty/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/util.py b/copyparty/util.py index 5cbf9f71..22e20915 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -3886,7 +3886,7 @@ def _runhook( ip: str, at: float, txt: str, - other: dict + other: dict = {}, ) -> dict[str, Any]: ret = {"rc": 0} areq, chk, imp, fork, sin, jtxt, wait, sp_ka, acmd = _parsehook(log, cmd) @@ -3982,7 +3982,7 @@ def runhook( ip: str, at: float, txt: str, - other: dict, + other: dict = {}, ) -> dict[str, Any]: assert broker or up2k # !rm args = (broker or up2k).args # type: ignore