[Bugs] #3223 UNSP: Moon fails to launch with bad clock

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Oct 31 12:15:29 EDT 2011

#3223: Moon fails to launch with bad clock
    Reporter:  dsd                        |          Owner:  garycmartin                
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Moon                       |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
 If the system clock is bad (e.g. year 2000), Moon-13 fails to launch:

 Traceback (most recent call last):
   File "/usr/bin/sugar-activity", line 21, in <module>
   File "/usr/lib/python2.7/site-packages/sugar/activity/main.py", line
 158, in main
     create_activity_instance(activity_constructor, activity_handle)
   File "/usr/lib/python2.7/site-packages/sugar/activity/main.py", line 37,
 in create_activity_instance
     activity = constructor(handle)
   File "/home/olpc/Activities/Moon.activity/moon.py", line 174, in
   File "/home/olpc/Activities/Moon.activity/moon.py", line 248, in
   File "/home/olpc/Activities/Moon.activity/moon.py", line 468, in
     last_new_moon_sec = self.last_new_moon_sec_at_time(the_date)
   File "/home/olpc/Activities/Moon.activity/moon.py", line 612, in
     return now - last
 UnboundLocalError: local variable 'last' referenced before assignment

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

More information about the Bugs mailing list