summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-06-03 15:47:03 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-06-03 15:48:10 +0100
commit298238d9a5cd2e96c8e04007dad50ec19d6d68cb (patch)
tree7fbf6c91374d0394bc4324f3429fd5acc5c40e76
parenta0749b5df7098212d261dc3da41e01a48336f717 (diff)
downloadimport-298238d9a5cd2e96c8e04007dad50ec19d6d68cb.tar.gz
Don't put version in error message if it's None
Change-Id: Id7b0713263f3d68773f69bc4c2dadec414e1d902
-rwxr-xr-xbaserockimport/exts/python.find_deps4
1 files changed, 2 insertions, 2 deletions
diff --git a/baserockimport/exts/python.find_deps b/baserockimport/exts/python.find_deps
index 5057d0e..cd2e9bd 100755
--- a/baserockimport/exts/python.find_deps
+++ b/baserockimport/exts/python.find_deps
@@ -295,8 +295,8 @@ def find_runtime_deps(source, name, version=None, use_requirements_file=False):
logging.debug('pip exited with code: %d' % p.returncode)
if p.returncode != 0:
- error('failed to get runtime dependencies for %s %s at %s'
- % (name, version, source))
+ error('failed to get runtime dependencies for %s%s at %s'
+ % (name, ' %s' % version if version else '', source))
with os.fdopen(tmpfd) as tmpfile:
ss = resolve_specs(pkg_resources.parse_requirements(tmpfile))