Skip to content

Commit cfc613a

Browse files
committed
get_values eagerly loads sections before return
1 parent fbc36f9 commit cfc613a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: git/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ def get_values(
796796
:raise TypeError: in case the value could not be understood
797797
Otherwise the exceptions known to the ConfigParser will be raised."""
798798
try:
799+
self.sections()
799800
lst = self._sections[section].getall(option)
800801
except Exception:
801802
if default is not None:

0 commit comments

Comments
 (0)