summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2022-04-18 10:47:13 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2022-04-18 10:47:13 -0400
commit7c62b3472627f4bfe85e359d80d2b9eff2588ce7 (patch)
tree70c25897a0b56efe50bf3a02e9f07420fa8c2381
parentf0588430217f44730eb25db95f341d548a816488 (diff)
downloadtftpy-7c62b3472627f4bfe85e359d80d2b9eff2588ce7.tar.gz
Removing error response if error received during RRQ or WRQ state. [106]
-rw-r--r--tftpy/TftpStates.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py
index f6b4b48..dd217b6 100644
--- a/tftpy/TftpStates.py
+++ b/tftpy/TftpStates.py
@@ -562,7 +562,6 @@ class TftpStateSentWRQ(TftpState):
return self
elif isinstance(pkt, TftpPacketERR):
- self.sendError(TftpErrors.IllegalTftpOp)
raise TftpException("Received ERR from server: %s" % pkt)
elif isinstance(pkt, TftpPacketRRQ):
@@ -627,7 +626,6 @@ class TftpStateSentRRQ(TftpState):
raise TftpException("Received WRQ from server while in download")
elif isinstance(pkt, TftpPacketERR):
- self.sendError(TftpErrors.IllegalTftpOp)
log.debug("Received ERR packet: %s", pkt)
if pkt.errorcode == TftpErrors.FileNotFound:
raise TftpFileNotFoundError("File not found")