Browse files

fix bug which stopped command from working

  • Loading branch information...
1 parent 63d08b1 commit ed98eca840855b614cd03fcab1c7fbf9932085e8 @io2 io2 committed Oct 13, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 veh/
@@ -470,7 +470,11 @@ def __init__(self, **kwargs):
def _findroot(self):
"""It would be better to walk the tree looking for .veh.conf"""
- return find_root_with_file(".veh.conf", os.getcwd())
+ try:
+ foundroot = find_root_with_file(".veh.conf", os.getcwd())
+ except:
+ return os.getcwd()
+ return foundroot
def _getroot(self):
from os.path import realpath

1 comment on commit ed98eca


io2 commented on ed98eca Oct 13, 2011

find_root_with_file(".veh.conf", os.getcwd()) raises an exception if root direction / is reached without .veh.conf file being found.
Exception needed to be handled in order for "veh install" command to present user with .veh.conf template for installation.

Please sign in to comment.