summaryrefslogtreecommitdiff
path: root/exts/pip.to_lorry
diff options
context:
space:
mode:
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