[meld] Fix svk command not available leading to OSError traceback



commit 4670f07e1164994162bf2947a85540b43da5bbfc
Author: Vincent Legoll <vincent legoll gmail com>
Date:   Wed Apr 22 20:16:18 2009 +0200

    Fix svk command not available leading to OSError traceback
---
 vc/svk.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/vc/svk.py b/vc/svk.py
index 30d6787..cfdbe41 100644
--- a/vc/svk.py
+++ b/vc/svk.py
@@ -31,7 +31,10 @@ class Vc(svn.Vc):
     PATCH_INDEX_RE = "^=== (.*)$"
 
     def is_repo_root(self, location):
-        status = misc.cmdout([self.CMD, "info"], cwd=location, stdout=misc.NULL)[1]
+        try:
+            status = misc.cmdout([self.CMD, "info"], cwd=location, stdout=misc.NULL)[1]
+        except OSError:
+            raise ValueError()
         if status != 0:
             raise ValueError()
         return location



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