[pitivi] preset: Make loadAll more flexible



commit 71f275608ae90bcd7595d1025fb7cd41e982cebf
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Mon Nov 12 00:06:23 2012 +0100

    preset: Make loadAll more flexible

 pitivi/preset.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/preset.py b/pitivi/preset.py
index d9e9bff..f0ca3c8 100644
--- a/pitivi/preset.py
+++ b/pitivi/preset.py
@@ -71,6 +71,9 @@ class PresetManager(object):
         try:
             for uri in os.listdir(self.default_path):
                 filepaths.append(os.path.join(self.default_path, uri))
+        except Exception:
+            pass
+        try:
             for uri in os.listdir(self.user_path):
                 filepaths.append(os.path.join(self.user_path, uri))
         except Exception:



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