Commit f1a6985e authored by Leigh Stoller's avatar Leigh Stoller

Add some missing "pass" statements that was causing (me) some

confusion.
parent c17df4c9
......@@ -100,15 +100,18 @@ def SENDMAIL(To, Subj, Msg, From = None, Headers = None, Files = ()):
for fname in Files:
try:
infile = open(fname)
except IOError:
continue
sm.write("\n--------- %s --------\n" % fname)
sm.write("\n--------- %s --------\n" % fname)
for line in infile.readlines():
sm.write(line)
infile.close()
for line in infile.readlines():
sm.write(line)
pass
infile.close()
pass
except:
pass
pass
pass
sm.write("\n")
sm.close()
......
......@@ -100,15 +100,18 @@ def SENDMAIL(To, Subj, Msg, From = None, Headers = None, Files = ()):
for fname in Files:
try:
infile = open(fname)
except IOError:
continue
sm.write("\n--------- %s --------\n" % fname)
sm.write("\n--------- %s --------\n" % fname)
for line in infile.readlines():
sm.write(line)
infile.close()
for line in infile.readlines():
sm.write(line)
pass
infile.close()
pass
except:
pass
pass
pass
sm.write("\n")
sm.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment