[pitivi] mediafilespreviewer: Remove always-true condition



commit 1f55af2e8279ec5e000b9ca9819310a3e377f221
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Jan 20 19:53:13 2014 +0100

    mediafilespreviewer: Remove always-true condition

 pitivi/mediafilespreviewer.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/mediafilespreviewer.py b/pitivi/mediafilespreviewer.py
index dd791ba..30a1727 100644
--- a/pitivi/mediafilespreviewer.py
+++ b/pitivi/mediafilespreviewer.py
@@ -187,11 +187,10 @@ class PreviewWidget(Gtk.Grid, Loggable):
             try:
                 info = self.discoverer.discover_uri(uri)
             except Exception, e:
-                if e is not None:
-                    self.preview_cache_errors[uri] = e
-                    if self.current_selected_uri == uri:
-                        self.show_error(uri)
-                    return
+                self.preview_cache_errors[uri] = e
+                if self.current_selected_uri == uri:
+                    self.show_error(uri)
+                return
 
             if self.current_selected_uri == uri:
                 self.show_preview(uri, info)


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