Skip to content

Commit a96b473

Browse files
committed
chore: update committer plugin
1 parent 17ef9cb commit a96b473

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hooks/committer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ def get_contributors_to_file(self, path: str) -> List[dict]:
9292
authors = []
9393
print(f"Getting contributors to {path}")
9494
for _ in range(5):
95-
r = requests.get(url=path, headers=get_header())
95+
try:
96+
r = requests.get(url=path, headers=get_header())
97+
except Exception as e:
98+
print(f"Got an exception: {e}")
99+
continue
96100
self.last_request_return_code = r.status_code
97101
if r.status_code == 200:
98102
# Get login, url and avatar for each author. Ensure no duplicates.

0 commit comments

Comments
 (0)