whois.py edited online with Bitbucket
authorAndrey Skabelin <andrey.skabelin@gmail.com>
Wed, 03 Aug 2016 12:36:03 +0000
changeset 106 40e0392ef844
parent 105 2228d503a1f0
child 107 58817891026b
whois.py edited online with Bitbucket
whois/whois.py
--- a/whois/whois.py	Wed Aug 03 12:23:19 2016 +0000
+++ b/whois/whois.py	Wed Aug 03 12:36:03 2016 +0000
@@ -118,7 +118,7 @@
                 if not d:
                     break
             s.close()
-        except socket.error:
+        except socket.error as socketerror:
             print('Socket Error:', socketerror)
             return response