Skip to content

Commit

Permalink
update arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Nov 3, 2021
1 parent 34ee292 commit 2d1487b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sa_tools_core/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def notify(args):
if values:
addrs = [i for v in values for i in re.split(r"[,\s]+", v)]
try:
getattr(notifier, type_)(addrs, from_addr=args.from_addr, company=args.company)
if args.company:
getattr(notifier, type_)(addrs, from_addr=args.from_addr, company=args.company)
else:
getattr(notifier, type_)(addrs, from_addr=args.from_addr)
except Exception as e:
logger.exception("Notifier.%s(%s) failed: %s", type_, addrs, e)
report()
Expand Down

0 comments on commit 2d1487b

Please sign in to comment.