summaryrefslogtreecommitdiffstats
path: root/Lib/logging/handlers.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2004-08-24 09:36:23 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2004-08-24 09:36:23 (GMT)
commitfb154171c4ace44dec817a3e52a0b83bbbb0f4f5 (patch)
tree6c11f875af1247e6f535ddfbba9a7d08e39f4a79 /Lib/logging/handlers.py
parenta12fa148d731562661551e197956341e874e3275 (diff)
downloadcpython-fb154171c4ace44dec817a3e52a0b83bbbb0f4f5.zip
cpython-fb154171c4ace44dec817a3e52a0b83bbbb0f4f5.tar.gz
cpython-fb154171c4ace44dec817a3e52a0b83bbbb0f4f5.tar.bz2
Fixed bug in DatagramHandler.send()
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r--Lib/logging/handlers.py2
1 files changed, 2 insertions, 0 deletions
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 @@ class DatagramHandler(SocketHandler):
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):