intel / dleyna-control

dLeyna-control is a Digital Media Player written in python to demonstrate how to use the dleyna DMS APIs. It detects Digital Media Servers on the local area network and allows users to browse, search and play their contents.
https://01.org/dleyna/
GNU Lesser General Public License v2.1
8 stars 12 forks source link

Servers that do not provide icons break dLeyna-control #42

Open markdryan opened 11 years ago

markdryan commented 11 years ago

As can be seen from the lovely exception below

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 604, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/local/lib/python2.7/dist-packages/msd/msd_upnp.py", line 82, in __on_get_servers_reply
    self.__found_server(path)
  File "/usr/local/lib/python2.7/dist-packages/msd/msd_upnp.py", line 92, in __found_server
    self.__found_server_cb(path)
  File "/usr/local/lib/python2.7/dist-packages/msd/msd_main_window.py", line 308, in __found_server
    rowref = self.__append_server_list_row(liststore, server)
  File "/usr/local/lib/python2.7/dist-packages/msd/msd_main_window.py", line 51, in __append_server_list_row
    return list_store.append([image, server.name, server])
UnboundLocalError: local variable 'image' referenced before assignment
50 rows fetched (50/377 rows cached)