[pitivi] Fix pylint lost-exception



commit cea96952b8837770af7e18273ea3574239c1baf0
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Nov 1 07:24:08 2019 +0100

    Fix pylint lost-exception

 pitivi/utils/pipeline.py | 3 ++-
 pre-commit.hook          | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 5c9c6a23..386d4883 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -286,7 +286,8 @@ class SimplePipeline(GObject.Object, Loggable):
                 if position != Gst.CLOCK_TIME_NONE:
                     self.emit("position", position)
         finally:
-            return True
+            # Call me again.
+            return True  # pylint: disable=lost-exception
 
     def _listenToPosition(self, listen=True):
         # stupid and dumm method, not many checks done
diff --git a/pre-commit.hook b/pre-commit.hook
index 3a2bb6ad..652ea62a 100755
--- a/pre-commit.hook
+++ b/pre-commit.hook
@@ -20,7 +20,6 @@ pitivi/timeline/elements.py
 pitivi/timeline/timeline.py
 pitivi/utils/extract.py
 pitivi/utils/loggable.py
-pitivi/utils/pipeline.py
 pitivi/utils/ui.py
 pitivi/utils/validate.py
 pitivi/utils/widgets.py


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