From cb7aa47968cae7d67c39e41bb5427fba76783d78 Mon Sep 17 00:00:00 2001 From: Dorae <86833913+Toperlock@users.noreply.github.com> Date: Thu, 9 Nov 2023 19:16:07 +0800 Subject: [PATCH] Update tool.py --- tool.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tool.py b/tool.py index 9905f744c..ec19de936 100644 --- a/tool.py +++ b/tool.py @@ -174,12 +174,7 @@ def urlDecode(str): def b64Decode(str): str = str.strip() str += (len(str)%4)*'=' - #print(str) - try: - result = base64.b64decode(str) - except Exception as e: - result = base64.urlsafe_b64decode(str) - return result + return base64.urlsafe_b64decode(str) def readFile(path): file = open(path,'rb')