Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc18b319

Browse files
committed
get_values now matches get_value behavior when section not found.
1 parentfbc36f9 commitc18b319

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎git/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,10 @@ 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+
_section_list=self.sections()
800+
ifsectionnotin_section_list:
801+
raisecp.NoSectionError(section)
802+
799803
lst=self._sections[section].getall(option)
800804
exceptException:
801805
ifdefaultisnotNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp