diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-15 21:09:01 -0400 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-15 21:09:01 -0400 |
| commit | 4712b530f02d6ff5db259809f7ebd28b268e4cbf (patch) | |
| tree | 240652c04b6ed8aa34e172ade9528603bf89f0de /client | |
| parent | f04aee9a073ef05f04d5300de578d327d464ebbf (diff) | |
| parent | dffae225009a6faef9082f2b099f028ee4de508f (diff) | |
| download | jasper-client-4712b530f02d6ff5db259809f7ebd28b268e4cbf.tar.gz jasper-client-4712b530f02d6ff5db259809f7ebd28b268e4cbf.zip | |
Merge pull request #177 from Holzhaus/remove-gmail-errors
Remove Gmail errors from Notifier class
Diffstat (limited to 'client')
| -rw-r--r-- | client/notifier.py | 7 |
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() |
