Skip to content

Commit

Permalink
Lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayasimha Raghavan authored and Jayasimha Raghavan committed Aug 12, 2024
1 parent 69a6759 commit 3596c89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions unskript-ctl/unskript_ctl_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3596c89

Please sign in to comment.