[pitivi] viewer: Remove generic try/catch
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] viewer: Remove generic try/catch
- Date: Tue, 4 Feb 2014 21:55:59 +0000 (UTC)
commit 59f755f354df6879e072c1fb4d00719f30bad168
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Jan 13 14:49:55 2014 +0100
viewer: Remove generic try/catch
pitivi/viewer.py | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 7cbdf33..e6dc017 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -347,14 +347,8 @@ class ViewerContainer(Gtk.VBox, Loggable):
self.seeker.seekRelative(Gst.SECOND)
def _goToEndCb(self, unused_button):
- try:
- end = self.app.current_project.pipeline.getDuration()
- except:
- self.warning("Couldn't get timeline duration")
- try:
- self.seeker.seek(end)
- except:
- self.warning("Couldn't seek to the end of the timeline")
+ end = self.app.current_project.pipeline.getDuration()
+ self.seeker.seek(end)
## public methods for controlling playback
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]