From 79ac8460fad14d2dbf73c99e6d64cdd49cb54dae Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 10 Feb 2024 21:18:18 +0000 Subject: [PATCH] fix msoulier/tftpy#140 probably not correct but good enough for me --- partftpy/TftpServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partftpy/TftpServer.py b/partftpy/TftpServer.py index eacc9e0..4996e79 100644 --- a/partftpy/TftpServer.py +++ b/partftpy/TftpServer.py @@ -184,7 +184,7 @@ def listen( self.sessions[key].start(buffer) except TftpTimeoutExpectACK: self.sessions[key].timeout_expectACK = True - except TftpException as err: + except Exception as err: deletion_list.append(key) log.error( "Fatal exception thrown from session %s: %s" @@ -212,7 +212,7 @@ def listen( deletion_list.append(key) except TftpTimeoutExpectACK: self.sessions[key].timeout_expectACK = True - except TftpException as err: + except Exception as err: deletion_list.append(key) log.error( "Fatal exception thrown from session %s: %s"