Skip to content

Commit

Permalink
BuffWriter.write(): fixed bw.error reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbleboy14 committed Apr 29, 2024
1 parent 5e91807 commit 33806aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rel/buff.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def write(self):
bw = self.writes[0]
bw.write(self.sock)
if bw.error:
return self.error("write error: %s"%(e,))
return self.error("write error: %s"%(bw.error,))
bw.complete and self.writes.pop(0)
self.writes or self.log("all writes complete")
return self.writes
Expand Down

0 comments on commit 33806aa

Please sign in to comment.