From 1017a0d321a487bc6a039e6f5293c74f642f3fc6 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Fri, 19 Jan 2024 21:37:36 -0700 Subject: [PATCH] Update --- get_pyc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/get_pyc.py b/get_pyc.py index e2212aa..f8426cd 100755 --- a/get_pyc.py +++ b/get_pyc.py @@ -75,5 +75,9 @@ for path in in_path.rglob("*.co"): with open(str(py_file), 'w') as decompiled: uncompyle6.main.decompile_file(str(pyc_file), decompiled) + except KeyboardInterrupt: + break except: print("Failed to decompile %s" % path) + else: + print("Decompiled %s" % path)