sample:
with suppress(Exception)
os.remove('test1.log')
os.remove('test2.log')
try:
os.remove('test1.log')
os.remove('test2.log')
except:
pass
test2.log will not be deleted if test1.log isn't exist because FileNotFoundError. So how to process odd code after an exception happened, or how to prevent an exception been throw?