From d015a7e3cfe82f0425c18493fc9fb341217f1d98 Mon Sep 17 00:00:00 2001 From: Binbin Zhang Date: Mon, 13 Dec 2021 20:44:46 +0800 Subject: [PATCH] refine lint error in shuffle_list.py --- tools/shuffle_list.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/shuffle_list.py b/tools/shuffle_list.py index 470b050..1d49360 100644 --- a/tools/shuffle_list.py +++ b/tools/shuffle_list.py @@ -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()