We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc36f9 commit c18b319Copy full SHA for c18b319
git/config.py
@@ -796,6 +796,10 @@ def get_values(
796
:raise TypeError: in case the value could not be understood
797
Otherwise the exceptions known to the ConfigParser will be raised."""
798
try:
799
+ _section_list = self.sections()
800
+ if section not in _section_list:
801
+ raise cp.NoSectionError(section)
802
+
803
lst = self._sections[section].getall(option)
804
except Exception:
805
if default is not None:
0 commit comments