Skip to content

Commit 46ed11e

Browse files
authored
Handle exceptions when removing files
Add exception handling for file removal. Signed-off-by: Yingwei Zheng <[email protected]>
1 parent cfb8c2c commit 46ed11e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fuzz.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ def check(recipe_arg, time_budget):
197197
if reason_dict[name] != "":
198198
print(name, reason_dict[name])
199199
else:
200-
os.remove(os.path.join(work_dir, file))
200+
try:
201+
os.remove(os.path.join(work_dir, file))
202+
except Exception:
203+
pass
201204
return True
202205
idx += files_per_iter
203206
return False

0 commit comments

Comments
 (0)