Skip to content

Commit b6e63c4

Browse files
authored
Merge branch 'main' into copilot/fix-372
2 parents f4e622e + 8eff095 commit b6e63c4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dependabot_file.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ def build_dependabot_file(
208208
)
209209
break
210210
except github3.exceptions.NotFoundError:
211+
# The file does not exist and is not required,
212+
# so we should continue to the next one rather than raising error or logging
211213
pass
212214

213215
# detect package managers with variable file names
@@ -227,6 +229,8 @@ def build_dependabot_file(
227229
)
228230
break
229231
except github3.exceptions.NotFoundError:
232+
# The file does not exist and is not required,
233+
# so we should continue to the next one rather than raising error or logging
230234
pass
231235
if "github-actions" not in exempt_ecosystems_list:
232236
try:
@@ -244,6 +248,8 @@ def build_dependabot_file(
244248
)
245249
break
246250
except github3.exceptions.NotFoundError:
251+
# The file does not exist and is not required,
252+
# so we should continue to the next one rather than raising error or logging
247253
pass
248254
if "devcontainers" not in exempt_ecosystems_list:
249255
try:
@@ -261,6 +267,8 @@ def build_dependabot_file(
261267
)
262268
break
263269
except github3.exceptions.NotFoundError:
270+
# The file does not exist and is not required,
271+
# so we should continue to the next one rather than raising error or logging
264272
pass
265273

266274
if any(package_managers_found.values()):

evergreen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ def check_existing_config(repo, filename):
317317
if existing_config.size > 0:
318318
return existing_config
319319
except github3.exceptions.NotFoundError:
320+
# The file does not exist and is not required,
321+
# so we should continue to the next one rather than raising error or logging
320322
pass
321323
return None
322324

0 commit comments

Comments
 (0)