#4454 HIGH Update.: Activity will not close if the write_file method raises an exception

Zarro Boogs per Child bugtracker at laptop.org
Mon Nov 5 01:41:11 EST 2007


#4454: Activity will not close if the write_file method raises an exception
---------------------+------------------------------------------------------
  Reporter:  pascal  |       Owner:  tomeu   
      Type:  defect  |      Status:  reopened
  Priority:  high    |   Milestone:  Update.2
 Component:  sugar   |     Version:          
Resolution:          |    Keywords:          
  Verified:  0       |  
---------------------+------------------------------------------------------

Comment(by pascal):

 The same problem hit me in Browse yesterday, after creating a bookmark
 Browse silently doesn't want to close anymore in Joyride-224. This is
 going to confuse the heck out of people, I think the framework should
 really issue a warning of some sort that exit isn't going to work and
 offer to kill the application.

 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/sugar/activity/activity.py", line
 499, in do_set_property
     self.save()
   File "/usr/lib/python2.5/site-packages/sugar/activity/activity.py", line
 688, in save
     self.write_file(file_path)
   File "/usr/share/activities/Web.activity/webactivity.py", line 289, in
 write_file
     f = open(file_path, 'w')
 IOError: [Errno 2] No such file or directory:
 '/home/olpc/.sugar/default/org.laptop.WebActivity/data/1194224334'

-- 
Ticket URL: <http://dev.laptop.org/ticket/4454#comment:8>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list