jenkins-bot has submitted this change and it was merged.
Change subject: (bug 56879) ignore TypeError while deleting
......................................................................
(bug 56879) ignore TypeError while deleting
Change-Id: I3d643e4ff2f9e56953f83619a7316f8888263cea
---
M pywikibot/comms/threadedhttp.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Calak: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/comms/threadedhttp.py b/pywikibot/comms/threadedhttp.py
index 2ceaf72..90d4de7 100644
--- a/pywikibot/comms/threadedhttp.py
+++ b/pywikibot/comms/threadedhttp.py
@@ -9,7 +9,7 @@
"""
-# (C) 2007 Pywikipedia bot team, 2007
+# (C) 2007 Pywikibot team, 2007-2013
# (C) 2006 Httplib 2 team, 2006
# (C) 2007 Metaweb Technologies, Inc.
#
@@ -77,7 +77,7 @@
for key in self.connections:
for connection in self.connections[key]:
connection.close()
- except AttributeError:
+ except (AttributeError, TypeError):
pass # this shows up when logger has been destroyed first
finally:
self.lock.release()
--
To view, visit https://gerrit.wikimedia.org/r/100157
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3d643e4ff2f9e56953f83619a7316f8888263cea
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Calak <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits