Protect against NoneTypes

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-06-14 03:48:51 -04:00
parent 87475c2abb
commit 4dbab47f11
+1 -1
View File
@@ -563,7 +563,7 @@ class VCSRequirement(FileRequirement):
ref = None
if "@" in link.show_url and "@" in uri:
uri, ref = uri.rsplit("@", 1)
if "@" in relpath:
if relpath and "@" in relpath:
relpath, ref = relpath.rsplit("@", 1)
return cls(
name=name,