From 51b8b37c9038d6e124e07e371b7f1120a9583d2d Mon Sep 17 00:00:00 2001 From: Scratchcat1 Date: Thu, 5 Oct 2017 19:33:22 +0000 Subject: [PATCH] Add files via upload -Removed exception handling for `Crypter.Recv` to allow exceptions to propegate and prevent hangs on failed key exchanges. --- AATC_Crypto.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/AATC_Crypto.py b/AATC_Crypto.py index 7169a87..30b0663 100644 --- a/AATC_Crypto.py +++ b/AATC_Crypto.py @@ -175,10 +175,8 @@ def Decrypt(self,data): def Send(self,data): self.con.sendall(codecs.encode(str(data))) def Recv(self): - try: - data = recvall.recvall(self.con) - data = ast.literal_eval(codecs.decode(data)) - # (Command,Arguments) - return data - except Exception as e: - print("Error in Cryptor while receiving ",e) + data = recvall.recvall(self.con) + data = ast.literal_eval(codecs.decode(data)) + # (Command,Arguments) + return data +