Skip to content

Commit

Permalink
Fixes Illumina#293
Browse files Browse the repository at this point in the history
Adding a timeout of 5 seconds to `smtplib.SMTP()` allows the script to continue when the port is blocking.
  • Loading branch information
riederd authored Dec 21, 2022
1 parent 75b5c38 commit a591f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/lib/makeRunScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_run_options(workflowClassName) :
def isLocalSmtp() :
import smtplib
try :
smtplib.SMTP('localhost')
smtplib.SMTP('localhost', 25, 'localhost', 5)
except :
return False
return True
Expand Down

0 comments on commit a591f9a

Please sign in to comment.