[pitivi] Application: Fix loadProject method, log exceptions
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Application: Fix loadProject method, log exceptions
- Date: Fri, 17 Apr 2009 09:36:50 -0400 (EDT)
commit a3d61d754a18a51499fca018e29106d0fc0c4686
Author: Edward Hervey <bilboed bilboed com>
Date: Thu Apr 16 11:38:35 2009 +0200
Application: Fix loadProject method, log exceptions
---
pitivi/application.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/pitivi/application.py b/pitivi/application.py
index 8987a01..5993e99 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -184,11 +184,14 @@ class Pitivi(object, Loggable, Signallable):
if self._closeRunningProject():
project = formatter.newProject()
self.emit("new-project-loading", project)
+ self.info("Got a new project %r, calling loadProject", project)
try:
- formater.load_project(uri, project)
+ formatter.loadProject(uri, project)
self.current = project
self.emit("new-project-loaded", self.current)
- except:
+ except Exception, e:
+ self.handleException(e)
+ self.warning("error loading the project")
self.current = None
self.emit("new-project-failed",
_("There was an error loading the file."), uri)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]