[Git][NTPsec/ntpsec][master] Address GitLab issue #180: Build failure on commit/31f0296a
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Dec 2 02:25:18 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
5a16aed0 by Eric S. Raymond at 2016-12-01T21:25:00-05:00
Address GitLab issue #180: Build failure on commit/31f0296a
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -792,14 +792,14 @@ class ControlSession:
self.port = sockaddr[1]
try:
self.sock = socket.socket(family, socktype, protocol)
- except socket.error as (errno, msg):
+ except socket.error as e:
raise ControlException("Error opening %s: %s [%d]" \
- % (hname, msg, errno))
+ % (hname, e.msg, e.errno))
try:
self.sock.connect(sockaddr)
- except socket.error as (errno, msg):
+ except socket.error as e:
raise ControlException("Error connecting to %s: %s [%d]" \
- % (hname, msg, errno))
+ % (hname, e.msg, e.errno))
return True
def password(self):
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5a16aed05afc06d7f46b820615e46af18cafc2a5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161202/304abde8/attachment.html>
More information about the vc
mailing list