summaryrefslogtreecommitdiff
path: root/exts/pip.to_lorry
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-05 11:30:31 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-05 11:30:31 +0000
commitf4c4400bb05b6acef7ccda720c49dba9260196ca (patch)
tree465365f05982db88fd5186641ce57a0cabce0904 /exts/pip.to_lorry
parentff847a19f4cfc82c05d86fc8c5a8c6ef3a829843 (diff)
downloadimport-baserock/richardipsum/python_v2-before-rebase.tar.gz
Fix for case where project doesn't existbaserock/richardipsum/python_v2-before-rebase
Diffstat (limited to 'exts/pip.to_lorry')
-rwxr-xr-xexts/pip.to_lorry4
1 files changed, 4 insertions, 0 deletions
diff --git a/exts/pip.to_lorry b/exts/pip.to_lorry
index 557b53e..451c9a7 100755
--- a/exts/pip.to_lorry
+++ b/exts/pip.to_lorry
@@ -204,6 +204,10 @@ def main():
# TODO: do not overwrite the original name, create a new attribute
# hurray for this dynamic language! >.>
new_proj_name = name_or_closest(client, req.project_name)
+
+ if new_proj_name == None:
+ error("Couldn't find any project with name '%s'" % req.project_name)
+
logging.debug('Treating %s as %s' % (req.project_name, new_proj_name))
req.project_name = new_proj_name