Skip to content

Commit 7a53a25

Browse files
zkoppertCopilot
andauthored
fix: rm catch for import error
Co-authored-by: Copilot <[email protected]> Signed-off-by: Zack Koppert <[email protected]>
1 parent b6e63c4 commit 7a53a25

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

evergreen.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ def enable_dependabot_security_updates(ghe, owner, repo, access_token):
345345
def get_repos_iterator(organization, team_name, repository_list, github_connection):
346346
"""Get the repositories from the organization, team_name, repository_list, or via search query"""
347347
# Use GitHub search API if REPOSITORY_SEARCH_QUERY is set
348-
try:
349-
search_query = os.getenv("REPOSITORY_SEARCH_QUERY", "")
350-
except ImportError:
351-
search_query = ""
348+
search_query = os.getenv("REPOSITORY_SEARCH_QUERY", "")
352349
if search_query:
353350
# Return repositories matching the search query
354351
return github_connection.search_repositories(search_query)

0 commit comments

Comments
 (0)