Ticket #3709 (closed defect: fixed)
Jukebox should safely ignore when referenced media is not found
| Reported by: | manuq | Owned by: | humitos |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | 0.98 |
| Component: | Jukebox | Version: | Unspecified |
| Severity: | Unspecified | Keywords: | |
| Cc: | humitos, manuq, garycmartin, godiard | Distribution/OS: | Unspecified |
| Bug Status: | Unconfirmed |
Description (last modified by manuq) (diff)
And may also tell the user: "N medias were not found".
TestCase:
- start Jukebox from scratch
- add media from a external device, like a pendrive
- stop the activity
- 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'
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

