Skip to content

Commit 248d797

Browse files
committed
Remove superfluous try/catch
1 parent 64940fa commit 248d797

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/update-release-branch.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,8 @@ def get_merger_of_pr(repo, pr):
173173
def get_pr_author_if_staff(pr):
174174
if pr.user is None:
175175
return None
176-
try:
177-
if getattr(pr.user, 'site_admin', False):
178-
return pr.user.login
179-
except Exception:
180-
pass
176+
if getattr(pr.user, 'site_admin', False):
177+
return pr.user.login
181178
return None
182179

183180
def get_current_version():

0 commit comments

Comments
 (0)