From dffae225009a6faef9082f2b099f028ee4de508f Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 15 Sep 2014 20:45:37 +0200 Subject: Remove Gmail errors. This resolves jasperproject/jasper-client#125. --- client/notifier.py | 7 ++++--- 1 file 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() -- cgit v1.3.1