You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to Events -> Upcoming Live Events -> FIA World Rally Championship -> Schedule
Expected behavior
Listing of all scheduled videos for the event, usually one for Friday, Saturday and Sunday.
Additional context
Operating system: NixOS
Kodi version: 20
Addon version: 3.2.2
Log (if available)
Error Type: <class 'TypeError'>
Error Contents: unsupported operand type(s) for +: 'NoneType' and 'str'
Traceback (most recent call last):
File "/var/lib/kodi/addons/plugin.video.redbull.tv/resources/lib/addon_entry.py", line 10, in <module>
run(argv)
File "/var/lib/kodi/addons/plugin.video.redbull.tv/resources/lib/addon.py", line 221, in run
plugin.run(params)
File "/var/lib/kodi/addons/script.module.routing/lib/routing.py", line 130, in run
self._dispatch(self.path)
File "/var/lib/kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
view_func(**kwargs)
File "/var/lib/kodi/addons/plugin.video.redbull.tv/resources/lib/addon.py", line 120, in browse_collection
build_menu(redbull.get_collection_url(uid))
File "/var/lib/kodi/addons/plugin.video.redbull.tv/resources/lib/addon.py", line 165, in build_menu
list_items.append(generate_list_item(item, PRODUCT))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/lib/kodi/addons/plugin.video.redbull.tv/resources/lib/addon.py", line 194, in generate_list_item
list_item.setPath('/notify/' + localize(30024), localize(30025), element.get('event_date') + ' (GMT+' + str(timezone / 3600 * -1))
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
The text was updated successfully, but these errors were encountered:
Describe the bug
Last weekend trying to list the WRC event encountered an error:
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
This was due to
element
missingevent_date
attribute (see pdb_locals)The quick fix is to fallback with empty string:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Listing of all scheduled videos for the event, usually one for Friday, Saturday and Sunday.
Additional context
Log (if available)
The text was updated successfully, but these errors were encountered: