diff --git a/rust-whisper.d/hotwords.py b/rust-whisper.d/hotwords.py index 71475bd..32a57b0 100644 --- a/rust-whisper.d/hotwords.py +++ b/rust-whisper.d/hotwords.py @@ -256,7 +256,7 @@ class Actor(threading.Thread): self.pid = int(environ["SIGUSR2"]) self.handle = self.handle_signal elif os.environ.get("URL", ""): - self.url = environ["URL"] + self.url = os.environ["URL"] self.handle = self.handle_url self.headers = [i.split("=")[:2] for i in os.environ.get("HEADERS", "").split("//") if i] self.body = os.environ.get("BODY", '{"hotword":"{{hotword}}","context":"{{context}}"}')