Simplify notification providers

This commit is contained in:
Ruud committed 2013-03-25 11:01:31 +01:00
1 parent b82319cb54
commit 7c234ab7e9
15 files changed
+7 -18

No files matched your search

@@ -12,7 +12,6 @@ log = CPLog(__name__)
class Email(Notification):
def notify(self, message = '', data = {}, listener = None):
if self.isDisabled(): return
# Extract all the settings from settings
from_address = self.conf('from')
@@ -50,6 +49,5 @@ class Email(Notification):
return True
except:
log.error('E-mail failed: %s', traceback.format_exc())
return False
return False