[pitivi/gtktimeline] project: Handle exception when extracting a timeline from a project
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/gtktimeline] project: Handle exception when extracting a timeline from a project
- Date: Mon, 1 Jun 2015 16:19:42 +0000 (UTC)
commit 1d298f7d9f41de0336069e875b06a9ecd5622875
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Jun 1 17:58:54 2015 +0200
project: Handle exception when extracting a timeline from a project
That will happen anytime the format is not supported
pitivi/project.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 9da0cbd..3cb29be 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -1110,7 +1110,11 @@ class Project(Loggable, GES.Project):
Load the project.
"""
# In this extract call the project is loaded from the file.
- self.timeline = self.extract()
+ try:
+ self.timeline = self.extract()
+ except GLib.Error:
+ self.timeline = None
+
if self.timeline is None:
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]