[alacarte] ItemEditor: Handle missing files better



commit 8f2d7cdc539861c8275a2c60b0a11713fa5428f7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 11 00:52:21 2013 -0500

    ItemEditor: Handle missing files better
    
    It turns out that we can't load missing files like this. Welp.

 Alacarte/ItemEditor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Alacarte/ItemEditor.py b/Alacarte/ItemEditor.py
index 41eab09..b3c923a 100644
--- a/Alacarte/ItemEditor.py
+++ b/Alacarte/ItemEditor.py
@@ -91,7 +91,7 @@ class LauncherEditor(object):
         self.keyfile = GLib.KeyFile()
         try:
             self.keyfile.load_from_file(self.item_path, util.KEY_FILE_FLAGS)
-        except IOError:
+        except GError:
             return
 
         def set_text(ctl, name):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]