diff --git a/diffido.py b/diffido.py index 8793d00..f0469bf 100755 --- a/diffido.py +++ b/diffido.py @@ -313,7 +313,7 @@ def send_email(to, subject='diffido', body='', from_=None): tls_args = {} for key in ('ssl_keyfile', 'ssl_certfile', 'ssl_context'): if key in args: - tls_args[key] = args[key].replace('ssl_', '') + tls_args[key] = (args[key] or '').replace('ssl_', '') del args[key] with smtplib.SMTP(**args) as s: if starttls: