[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 <tobias.manske@mailbox.org>
This commit is contained in:
parent
2fa3a0e250
commit
5203cd88a3
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Module(bumblebee.engine.Module):
|
||||||
|
|
||||||
def update(self, widgets):
|
def update(self, widgets):
|
||||||
try:
|
try:
|
||||||
with requests.get(self._url, timeout=self.timeout) as u:
|
with requests.get(self._url, timeout=self._timeout) as u:
|
||||||
json = u.json()
|
json = u.json()
|
||||||
self._open = json["state"]["open"]
|
self._open = json["state"]["open"]
|
||||||
self._name = self.parameter("name", default=json["space"])
|
self._name = self.parameter("name", default=json["space"])
|
||||||
|
|
Loading…
Reference in a new issue