From 5203cd88a360d52954c916cef0ebeae17ef9e657 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Mon, 24 Dec 2018 12:46:08 +0100 Subject: [PATCH] [modules/spaceapi] Fix ArgumentException This ArgumentException was caused by me failing to rename one occurence of a parameter when refactoring code. This went under my radar as the API I'm usually testing against, was offline at that time, too. So I expceted to see an Error. Just not this one. Well, the fix comes late, but better late than never :) Signed-off-by: Tobias Manske --- bumblebee/modules/spaceapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/spaceapi.py b/bumblebee/modules/spaceapi.py index 785f796..29dd14e 100644 --- a/bumblebee/modules/spaceapi.py +++ b/bumblebee/modules/spaceapi.py @@ -67,7 +67,7 @@ class Module(bumblebee.engine.Module): def update(self, widgets): try: - with requests.get(self._url, timeout=self.timeout) as u: + with requests.get(self._url, timeout=self._timeout) as u: json = u.json() self._open = json["state"]["open"] self._name = self.parameter("name", default=json["space"])