Skip to content

Commit

Permalink
Don't throw an error when no addons are installed (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts committed Oct 28, 2020
1 parent 735684d commit 433a49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/modules/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def detect_iptv_addons():
params={'installed': True, 'enabled': True, 'type': 'xbmc.python.pluginsource'})

addons = []
for row in result['result']['addons']:
for row in result['result'].get('addons', []):
addon = kodiutils.get_addon(row['addonid'])

# Check if add-on supports IPTV Manager
Expand Down

0 comments on commit 433a49b

Please sign in to comment.