diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index f027c20..fbc5f00 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -67,7 +67,7 @@ class SMTP(object): username = self.conf.get('username') password = self.conf.get('password') - if username is not None and password is not None: + if username and password: if PY2K: username = username.encode('ascii') password = password.encode('ascii')