[pitivi] project- Warn when the timeline extraction fails



commit 1fca868f340ffd25fd95537eee4bfc706bef74a1
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Oct 2 14:41:51 2015 +0200

    project- Warn when the timeline extraction fails
    
    Reviewers: thiblahute
    
    Reviewed By: thiblahute
    
    Subscribers: aleb
    
    Differential Revision: https://phabricator.freedesktop.org/D280

 pitivi/project.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 3ded9cb..a27174f 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -1116,10 +1116,11 @@ class Project(Loggable, GES.Project):
         """
         Load the project.
         """
-        # In this extract call the project is loaded from the file.
         try:
+            # The project is loaded from the file in this call.
             self.timeline = self.extract()
-        except GLib.Error:
+        except GLib.Error as e:
+            self.warning("Failed to extract the timeline: %s", e)
             self.timeline = None
 
         if self.timeline is None:
@@ -1132,7 +1133,7 @@ class Project(Loggable, GES.Project):
         try:
             self.pipeline.set_timeline(self.timeline)
         except PipelineError as e:
-            self.warning("Failed to set the timeline to the pipeline: %s", e)
+            self.warning("Failed to set the pipeline's timeline: %s", e)
             return False
 
         return True


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