Show More
@@ -99,8 +99,8 b' def main():' | |||||
99 | op.add_option('--logfile', metavar='FILE') |
|
99 | op.add_option('--logfile', metavar='FILE') | |
100 |
|
100 | |||
101 | opts, args = op.parse_args() |
|
101 | opts, args = op.parse_args() | |
102 |
if opts.tls == 'smtps' |
|
102 | if (opts.tls == 'smtps') != bool(opts.certificate): | |
103 | op.error('--certificate must be specified') |
|
103 | op.error('--certificate must be specified with --tls=smtps') | |
104 |
|
104 | |||
105 | addr = (opts.address, opts.port) |
|
105 | addr = (opts.address, opts.port) | |
106 |
|
106 |
General Comments 0
You need to be logged in to leave comments.
Login now