diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-05 11:30:31 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-05 11:30:31 +0000 |
commit | f4c4400bb05b6acef7ccda720c49dba9260196ca (patch) | |
tree | 465365f05982db88fd5186641ce57a0cabce0904 /exts/pip.to_lorry | |
parent | ff847a19f4cfc82c05d86fc8c5a8c6ef3a829843 (diff) | |
download | import-f4c4400bb05b6acef7ccda720c49dba9260196ca.tar.gz |
Fix for case where project doesn't existbaserock/richardipsum/python_v2-before-rebase
Diffstat (limited to 'exts/pip.to_lorry')
-rwxr-xr-x | exts/pip.to_lorry | 4 |
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 |