[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

extras-buildsys/common CommonErrors.py,1.5,1.6



Author: dcbw

Update of /cvs/fedora/extras-buildsys/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10219/common

Modified Files:
	CommonErrors.py 
Log Message:
2005-06-24  Dan Williams <dcbw redhat com>

    * common/CommonErrors.py
        - Try to trap actual error strings?  Does this work?




Index: CommonErrors.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/common/CommonErrors.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- CommonErrors.py	20 Jun 2005 16:18:32 -0000	1.5
+++ CommonErrors.py	24 Jun 2005 17:13:26 -0000	1.6
@@ -26,6 +26,7 @@
     # This is a bit complicated by the fact that different versions of
     # M2Crypto & OpenSSL seem to return different error codes for the
     # same type of error
+    s = "%s" % e
     if e[0] == 104:     # Connection refused
         return True
     elif e[0] == 111:   # Connection reset by peer
@@ -34,11 +35,11 @@
         return True
     elif e[0] == 54:    # Connection reset by peer
         return True
-    elif e == "no certificate returned":
+    elif s == "no certificate returned":
         return True
-    elif e == "wrong version number":
+    elif s == "wrong version number":
         return True
-    elif e == "unexpected eof":
+    elif s == "unexpected eof":
         return True
 
     return False


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]