Update of /cvsroot/pythoncard/PythonCard/samples/pysshed
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19204/pysshed
Modified Files:
customDialogs.py
Log Message:
Removed all of the plain except: clauses I could
Index: customDialogs.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/pysshed/customDialogs.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** customDialogs.py 12 Aug 2004 19:18:56 -0000 1.11
--- customDialogs.py 13 Dec 2005 11:13:24 -0000 1.12
***************
*** 119,123 ****
try:
bull = socket.gethostbyname(self.components.hostName.text)
! except:
msgtxt = '"%s" may not be a valid DNS hostname. ' % self.components.hostName.text
msgtxt += 'This may be because you do not currently have a connection to the internet, '
--- 119,123 ----
try:
bull = socket.gethostbyname(self.components.hostName.text)
! except socket.gaierror:
msgtxt = '"%s" may not be a valid DNS hostname. ' % self.components.hostName.text
msgtxt += 'This may be because you do not currently have a connection to the internet, '
|