Skip to content

Commit

Permalink
Allow failure of commands when finding plugin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
frozencemetery committed Nov 28, 2016
1 parent c1c80ce commit 5d499f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions k5test/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ def _decide_plugin_dir(dirs):


def _find_plugin_dirs_installed(search_path):
options_raw = get_output('find %s/ -type d '
'-path "*/krb5/plugins"' % search_path)
try:
options_raw = get_output('find %s/ -type d '
'-path "*/krb5/plugins"' % search_path,
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError:
options_raw = False

if options_raw:
return options_raw.split('\n')
Expand Down

0 comments on commit 5d499f0

Please sign in to comment.