diff --git a/unskript-ctl/unskript_ctl_notification.py b/unskript-ctl/unskript_ctl_notification.py index c6e79678b..db7b89625 100644 --- a/unskript-ctl/unskript_ctl_notification.py +++ b/unskript-ctl/unskript_ctl_notification.py @@ -842,10 +842,14 @@ def __init__(self, **kwargs): self.smtp_config = self.email_config.get('SMTP') def notify(self, **kwargs): + retval = False if kwargs.get('auth-type').lower() == "basic auth": - super().notify(**kwargs) + retval = super().notify(**kwargs) else: - self._send_email_with_oauth(**kwargs) + retval = self._send_email_with_oauth(**kwargs) + + return retval + def _send_email_with_oauth(self, **kwargs):