Picking "All stations" by country causes NoneType exception

Bug #517865 reported by AdamReid
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Radiotime plugin for Moovida
Confirmed
Medium
Unassigned

Bug Description

Got a chance to do some beta-testing of the RadioTime plugin and found this bug.

To reproduce:

Go to Internet Media -> TV -> MediaTime -> Countries, Pick a country (I tried Canada, Australia, Italy, South Africa) then select All Stations.

Expected result:

A list of all stations available in that country, or an indication that none are available

Current result:

Message titled "ERROR ENTERING A MENU" that reads:

"It was impossible to enter the menu 'All stations'.
Moovida was able to extract the following technical details that may help troubleshoot the issue:

'NoneType' object is unsubscriptable"

More information:

Running moovida from the command line gives the following backtrace when the error occurs:

WARN MainThread radiotime_station_controller Feb 05 18:59:48 Error populating model: 'NoneType' object is unsubscriptable (elisa/plugins/poblesec/base/list.py:253)
WARN MainThread radiotime_station_controller Feb 05 18:59:48 Error populating shortcuts: 'NoneType' object is unsubscriptable (elisa/plugins/poblesec/base/list.py:267)
WARN MainThread radiotime_station_controller Feb 05 18:59:48 Error creating view mode: 'NoneType' object is unsubscriptable (elisa/plugins/poblesec/base/list.py:221)
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 289, in _continue
    self.unpause()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 285, in unpause
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/home/adam/.moovida/plugins/elisa_plugin_radiotime-0.1.9.1.egg/elisa/plugins/radiotime/controllers.py", line 394, in get_result

exceptions.TypeError: 'NoneType' object is unsubscriptable

WARN MainThread default Feb 05 18:59:48 Entering controller with path /radiotime/station failed. Full failure log at /tmp/elisa_wkxaoH.txt (elisa/plugins/poblesec/history.py:96)

I have attached the log referenced in the last line of the backtrace.

Revision history for this message
AdamReid (atomic0x) wrote :
Revision history for this message
Andrea Nigido (posytive) wrote :

I can reproduce with Italy

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reproduce with all countries I tested, although the error message is sometimes different: "No location nor uri parts provided".
Full traceback:

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/elisa/plugins/radiotime/controllers.py", line 389, in initialize
    return super(RadiotimeStationController, self).initialize()
  File "/home/osomon/dev/elisa-branches/moovida/elisa-plugins/elisa/plugins/poblesec/base/list.py", line 224, in initialize
    dfr.addCallback(populate)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 195, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 186, in addCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/home/osomon/dev/elisa-branches/moovida/elisa-plugins/elisa/plugins/poblesec/base/list.py", line 205, in populate
    return self._populate()
  File "/home/osomon/dev/elisa-branches/moovida/elisa-plugins/elisa/plugins/poblesec/base/list.py", line 270, in _populate
    dfr = self.populate_model()
  File "build/bdist.linux-i686/egg/elisa/plugins/radiotime/controllers.py", line 399, in populate_model
    muri = MediaUri(self.uri)
  File "/home/osomon/dev/elisa-branches/moovida/elisa-core/elisa/core/media_uri.py", line 270, in __init__
    raise TypeError("No location nor uri parts provided")
exceptions.TypeError: No location nor uri parts provided

affects: moovida → elisa-plugin-radiotime
Changed in elisa-plugin-radiotime:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.