[meld/VersionControlRework: 95/123] vcview: Make cross-tab command helper actually return if we error out



commit 5d89fc1aca44aa97369f744e2a28a0a3d085d0ff
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Apr 11 09:45:15 2015 +1000

    vcview: Make cross-tab command helper actually return if we error out

 meld/vcview.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index a1b9106..b38ae5d 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -622,9 +622,11 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
     def command(self, command, files):
         if not self.has_command(command):
             log.error("Couldn't understand command %s", command)
+            return
 
         if not isinstance(files, list):
             log.error("Invalid files argument to '%s': %r", command, files)
+            return
 
         command = getattr(self.vc, self.command_map[command])
         command(self._command, files)


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