Opened 15 years ago

Last modified 11 years ago

#976 closed defect

favoritesview.py: icon-color KeyError — at Version 2

Reported by: sascha_silbe Owned by: tomeu
Priority: High Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Major Keywords: r+
Cc: eben, garycmartin Distribution/OS: Unspecified
Bug Status: Assigned

Description (last modified by tomeu)

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 578, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/favoritesview.py", line 383, in <lambda>
    entries, total_count, callback_cb)
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/favoritesview.py", line 394, in __reply_handler_cb
    callback_cb(entries)
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/favoritesview.py", line 458, in __get_last_activity_async_cb
    self._update()
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/desktop/favoritesview.py", line 467, in _update
    self.props.xo_color = XoColor(first_entry['icon-color'])
KeyError: 'icon-color'

This probably was the cause for
a) this system disappearing from the neighborhood/group view of another system and
b) the (own) buddy icon on neighborhood view (but not group view) not reacting to right click anymore.

Change History (3)

Changed 15 years ago by sascha_silbe

complete shell.log including this and other errors

comment:1 follow-up: Changed 15 years ago by sascha_silbe

This probably happens on an entry imported with copy-to-journal. I might also have manually created some metadata (but not icon-color) for the entry to be recognized by Turtle Art.
Nevertheless the shell shouldn't traceback on a missing color attribute (default probably should be the owners colors).

comment:2 in reply to: ↑ 1 Changed 15 years ago by tomeu

  • Cc eben garycmartin added
  • Description modified (diff)

Replying to sascha_silbe:

This probably happens on an entry imported with copy-to-journal. I might also have manually created some metadata (but not icon-color) for the entry to be recognized by Turtle Art.
Nevertheless the shell shouldn't traceback on a missing color attribute (default probably should be the owners colors).

Agreed, maybe Gary and/or Eben want to comment about what colors to use when the metadata property is missing?

Note: See TracTickets for help on using tickets.