mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #6021 from deivid-rodriguez/fix-key-error
Make `project.get_default_index()` populate a default name
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Fix KeyError when using a source without a name in Pipfile
|
||||
+1
-1
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user