[pitivi] mainwindow: remove generic try / except.
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] mainwindow: remove generic try / except.
- Date: Fri, 31 Jan 2014 14:42:14 +0000 (UTC)
commit 4c3d0f92eedb0a4945a9035390c06c9f817d9d95
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date: Wed Jan 29 21:17:25 2014 +0100
mainwindow: remove generic try / except.
pitivi/mainwindow.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 7895a69..36234d9 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -1160,7 +1160,7 @@ class PitiviMainWindow(Gtk.Window, Loggable):
return False
try:
self.app.current_project.disconnect_by_func(self._renderingSettingsChangedCb)
- except:
+ except TypeError:
# When loading the first project, the signal has never been
# connected before.
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]