summaryrefslogtreecommitdiff
path: root/client/notifier.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/notifier.py')
-rw-r--r--client/notifier.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/notifier.py b/client/notifier.py
index 5c2d855..6911ed5 100644
--- a/client/notifier.py
+++ b/client/notifier.py
@@ -20,9 +20,10 @@ class Notifier(object):
def __init__(self, profile):
self.q = Queue.Queue()
self.profile = profile
- self.notifiers = [
- self.NotificationClient(self.handleEmailNotifications, None),
- ]
+ self.notifiers = []
+
+ if 'gmail_address' in profile and 'gmail_password' in profile:
+ self.notifiers.append(self.NotificationClient(self.handleEmailNotifications, None))
sched = Scheduler()
sched.start()