From bd86c87c38d58b9ca18241a75c4d28440c7ef150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Izurieta?= Date: Sun, 14 Apr 2019 00:24:59 +0200 Subject: Fix `AttributeError` when searching a remote by name Running code like `'origin' in git.Repo('path/to/existing/repository').remotes` raises an AttributeError instead of returning a boolean. This commit fixes that behaviour by catching the error when doing an identity match on `IterableList`. --- AUTHORS | 1 + 1 file changed, 1 insertion(+) (limited to 'AUTHORS') diff --git a/AUTHORS b/AUTHORS index 5f42f856..a0aa707c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -32,5 +32,6 @@ Contributors are: -A. Jesse Jiryu Davis -Steven Whitman -Stefan Stancu +-César Izurieta Portions derived from other open source works and are clearly marked. -- cgit v1.2.3