commit | fb154171c4ace44dec817a3e52a0b83bbbb0f4f5 | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Tue Aug 24 09:36:23 2004 +0000 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Tue Aug 24 09:36:23 2004 +0000 |
tree | 6c11f875af1247e6f535ddfbba9a7d08e39f4a79 | |
parent | a12fa148d731562661551e197956341e874e3275 [diff] [blame] |
Fixed bug in DatagramHandler.send()
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 2cb1fb0..559404f 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py
@@ -450,6 +450,8 @@ when the network is busy - UDP does not guarantee delivery and can deliver packets out of sequence. """ + if self.sock is None: + self.createSocket() self.sock.sendto(s, (self.host, self.port)) class SysLogHandler(logging.Handler):