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