Skip to content
Snippets Groups Projects
Commit 3ddc4fd1 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

dagparts.py: fix string formatting issue when handling errors in dagparts.which

parent f7fa8f68
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,7 @@ def which(prog):
which = subprocess.Popen(['which',prog], stdout=subprocess.PIPE)
out = which.stdout.read().strip()
if not out:
print >>sys.stderr, "ERROR: could not find %s in your path, have you built the proper software and sourced the proper environment scripts?" % (prog,prog)
raise ValueError
raise ValueError("could not find %s in your path, have you built the proper software and sourced the proper environment scripts?" % prog)
return out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment