File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,8 @@ def build_dependabot_file(
208
208
)
209
209
break
210
210
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
211
213
pass
212
214
213
215
# detect package managers with variable file names
@@ -227,6 +229,8 @@ def build_dependabot_file(
227
229
)
228
230
break
229
231
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
230
234
pass
231
235
if "github-actions" not in exempt_ecosystems_list :
232
236
try :
@@ -261,6 +265,8 @@ def build_dependabot_file(
261
265
)
262
266
break
263
267
except github3 .exceptions .NotFoundError :
268
+ # The file does not exist and is not required,
269
+ # so we should continue to the next one rather than raising error or logging
264
270
pass
265
271
266
272
if any (package_managers_found .values ()):
Original file line number Diff line number Diff line change @@ -316,6 +316,8 @@ def check_existing_config(repo, filename):
316
316
if existing_config .size > 0 :
317
317
return existing_config
318
318
except github3 .exceptions .NotFoundError :
319
+ # The file does not exist and is not required,
320
+ # so we should continue to the next one rather than raising error or logging
319
321
pass
320
322
return None
321
323
You can’t perform that action at this time.
0 commit comments