From f09c6f3307806fe2db8b9bbf993b35b5df10244c Mon Sep 17 00:00:00 2001 From: Bryan Date: Sat, 28 Dec 2013 23:48:53 -0500 Subject: [PATCH] minor fix for when no virtualenvs are found --- fabfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index e4f5097..67f4402 100644 --- a/fabfile.py +++ b/fabfile.py @@ -32,7 +32,8 @@ def virtenv_path(): return env['env_root'] # Not memoized. Try to find a single unique virtual environment. - outp = run("find -L {0} -path '*/bin/activate' | grep -v '/local/'".format(env.proj_root)) + with settings(warn_only=True): + outp = run("find -L {0} -path '*/bin/activate' | grep -v '/local/'".format(env.proj_root)) if not len(outp) or len(outp.splitlines()) != 1: # Cannot find any virtualenv or found multiple virtualenvs. if len(outp) and default_venv not in outp: -- 2.25.1