jordilin  committed df88b0d

SMTP_SSL is not available for 2.4, so import error needs to be caught

  • Participants
  • Parent commits cf2b47f

Comments (0)

Files changed (1)

File log4client/src/log4tailer/

 import time
 from log4tailer import LogColors
 from log4tailer.Timer import Timer
-from smtplib import (SMTP, 
-        SMTP_SSL, 
-        SMTPServerDisconnected)
+from smtplib import SMTP, SMTPServerDisconnected
 from log4tailer.TermColorCodes import TermColorCodes
 import subprocess
 from subprocess import PIPE
 except ImportError:
     import Queue as queue
+    import SMTP_SSL
+except ImportError:
+    pass
 class Print(object):
     '''PrintAction: prints to stdout the 
     colorized log traces'''