refine lint error in shuffle_list.py

This commit is contained in:
Binbin Zhang 2021-12-13 20:44:46 +08:00
parent 8edff97097
commit d015a7e3cf

View File

@ -42,7 +42,9 @@ else:
try:
fout.writelines(lines)
except:
except Exception:
pass
if args.input is not None: fin.close()
if args.output is not None: fout.close()
if args.input is not None:
fin.close()
if args.output is not None:
fout.close()