Skip to content

Commit b42f16b

Browse files
committed
return false when lack remote section
in config file.
1 parent 64ec0b1 commit b42f16b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: git/remote.py

+2
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@ def exists(self) -> bool:
621621
return True
622622
except cp.NoSectionError:
623623
return False
624+
except ValueError:
625+
return False
624626

625627
@classmethod
626628
def iter_items(cls, repo: "Repo", *args: Any, **kwargs: Any) -> Iterator["Remote"]:

0 commit comments

Comments
 (0)