Skip to content

Commit

Permalink
Fix error with empty My List
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts committed Oct 15, 2020
1 parent 9d886a1 commit 32fc2b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/lib/streamz/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def get_swimlane_ids(self, swimlane):
response = util.http_get(API_ENDPOINT + '/%s/main/swimlane/%s' % (self._mode(), swimlane),
token=self._tokens.jwt_token,
profile=self._tokens.profile)

# Result can be empty
if not response.text:
return []

result = json.loads(response.text)

kodiutils.set_cache(['swimlane', swimlane], result)
Expand Down

0 comments on commit 32fc2b2

Please sign in to comment.