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: try:
fout.writelines(lines) fout.writelines(lines)
except: except Exception:
pass pass
if args.input is not None: fin.close() if args.input is not None:
if args.output is not None: fout.close() fin.close()
if args.output is not None:
fout.close()