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()