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 @@ -165,6 +165,8 @@ def build_dependabot_file(
165
165
)
166
166
break
167
167
except github3 .exceptions .NotFoundError :
168
+ # The file does not exist and is not required,
169
+ # so we should continue to the next one rather than raising error or logging
168
170
pass
169
171
170
172
# detect package managers with variable file names
@@ -183,6 +185,8 @@ def build_dependabot_file(
183
185
)
184
186
break
185
187
except github3 .exceptions .NotFoundError :
188
+ # The file does not exist and is not required,
189
+ # so we should continue to the next one rather than raising error or logging
186
190
pass
187
191
if "github-actions" not in exempt_ecosystems_list :
188
192
try :
@@ -199,6 +203,8 @@ def build_dependabot_file(
199
203
)
200
204
break
201
205
except github3 .exceptions .NotFoundError :
206
+ # The file does not exist and is not required,
207
+ # so we should continue to the next one rather than raising error or logging
202
208
pass
203
209
204
210
if any (package_managers_found .values ()):
Original file line number Diff line number Diff line change @@ -243,6 +243,8 @@ def check_existing_config(repo, filename):
243
243
if existing_config .size > 0 :
244
244
return existing_config
245
245
except github3 .exceptions .NotFoundError :
246
+ # The file does not exist and is not required,
247
+ # so we should continue to the next one rather than raising error or logging
246
248
pass
247
249
return None
248
250
You can’t perform that action at this time.
0 commit comments