Opened 12 years ago

Last modified 11 years ago

#3709 closed defect

Jukebox should safely ignore when referenced media is not found — at Version 1

Reported by: manuq Owned by: kushal
Priority: Unspecified by Maintainer Milestone:
Component: Jukebox Version: Unspecified
Severity: Unspecified Keywords:
Cc: humitos, manuq, garycmartin, godiard Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description (last modified by manuq)

And may also tell the user: "N medias were not found".

TestCase:

  1. start Jukebox from scratch
  2. add media from a external device, like a pendrive
  3. stop the activity
  4. remove the external device, restart the activity from the Journal entry

Currently, a OSError raised, can be seen in the logs for the second time the activity is started. Complete log attached.

Traceback (most recent call last):
36	  File "/home/olpc/Activities/Jukebox.activity/jukeboxactivity.py", line 491, in _start
37	    jobject = datastore.get(url[len("journal://"):])
38	  File "/usr/lib/python2.7/site-packages/sugar/datastore/datastore.py", line 295, in get
39	    return RawObject(object_id)
40	  File "/usr/lib/python2.7/site-packages/sugar/datastore/datastore.py", line 228, in __init__
41	    stat = os.stat(file_path)
42	OSError: [Errno 2] No such file or directory: '/run/media/olpc/9DF7-AE82/test-files/Hydrate-Kenny_Beltrey.ogg'

Change History (2)

Changed 12 years ago by manuq

comment:1 Changed 12 years ago by manuq

  • Description modified (diff)
Note: See TracTickets for help on using tickets.