[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:
Tobias Manske 2018-12-24 12:46:08 +01:00
parent 2fa3a0e250
commit 5203cd88a3
No known key found for this signature in database
GPG key ID: 978D99F12D4E041F

View file

@ -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"])