Merge pull request #6021 from deivid-rodriguez/fix-key-error

Make `project.get_default_index()` populate a default name
This commit is contained in:
Matt Davis
2023-12-06 01:51:03 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Fix KeyError when using a source without a name in Pipfile
+1 -1
View File
@@ -1023,7 +1023,7 @@ class Project:
return sources
def get_default_index(self):
return self.pipfile_sources()[0]
return self.populate_source(self.pipfile_sources()[0])
def get_index_by_name(self, index_name):
for source in self.pipfile_sources():