diff options
author | Ajay Garg <ajay@activitycentral.com> | 2012-03-05 04:35:51 (GMT) |
---|---|---|
committer | Anish Mangal <anish@activitycentral.com> | 2012-04-27 10:02:37 (GMT) |
commit | 84d68175268505da807b47e851245e7d1fd560b5 (patch) | |
tree | bff3c78fe4e4a96fe34e03b80f0aac2f37c4fc4a | |
parent | 83dda9ff47311721fcca277e0ffd869d3eeda618 (diff) |
au#1119, sl#3344: Return from "listview :: __select_set_data_cb", if an IOError occurs while "model.get(uid)".
-rw-r--r-- | src/jarabe/journal/listview.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py index 5acbae7..b8f562f 100644 --- a/src/jarabe/journal/listview.py +++ b/src/jarabe/journal/listview.py @@ -274,7 +274,17 @@ class BaseListView(gtk.Bin): # cell) is available offline as well (example during # batch-operations, when the processing has to be done, without # actually clicking any cell. - metadata = model.get(uid) + try: + metadata = model.get(uid) + except: + # https://dev.laptop.org.au/issues/1119 + # http://bugs.sugarlabs.org/ticket/3344 + # Occurs, when copying entries from journal to pen-drive. + # Simply swallow the exception, and return, as this too, + # like the above case, does not have any impact on the + # functionality. + return + metadata['cell'] = cell tree_model.update_uid_metadata_assoc(uid, metadata) |