[Bugs] #4725 Sugar UNSP: sugar: traceback when self._home_activity is None

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Jan 28 11:03:25 EST 2014


#4725: sugar: traceback when self._home_activity is None
---------------------------------------------+--------------------------
       Reporter:  godiard                    |       Owner:
           Type:  defect                     |      Status:  new
       Priority:  Unspecified by Maintainer  |   Milestone:  Unspecified
      Component:  Sugar                      |     Version:  Unspecified
       Severity:  Unspecified                |    Keywords:
Distribution/OS:  Unspecified                |  Bug Status:  Unconfirmed
---------------------------------------------+--------------------------
\
\
 We see this error in the logs:

 {{{
   File "/usr/lib/python2.7/site-
 packages/sugar3/graphics/palettewindow.py", line 1302, in
 __enter_notify_event_cb
     self.notify_mouse_enter()
   File "/usr/lib/python2.7/site-
 packages/sugar3/graphics/palettewindow.py", line 977, in
 notify_mouse_enter
     self._ensure_palette_exists()
   File "/usr/lib/python2.7/site-
 packages/sugar3/graphics/palettewindow.py", line 972, in
 _ensure_palette_exists
     palette = self.parent.create_palette()
   File "/usr/lib/python2.7/site-packages/jarabe/desktop/favoritesview.py",
 line 607, in create_palette
     if self._home_activity.is_journal():

 NoneType do not have is_journal() method
 }}}

 Looking at the code in the class CurrentActivityIcon, all the other uses
 of self._home_activity check if is None before use it.
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4725>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list