summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-15 20:45:37 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-15 20:45:37 +0200
commitdffae225009a6faef9082f2b099f028ee4de508f (patch)
tree240652c04b6ed8aa34e172ade9528603bf89f0de
parentf04aee9a073ef05f04d5300de578d327d464ebbf (diff)
downloadjasper-client-dffae225009a6faef9082f2b099f028ee4de508f.tar.gz
jasper-client-dffae225009a6faef9082f2b099f028ee4de508f.zip
Remove Gmail errors. This resolves jasperproject/jasper-client#125.
-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()