Skip to content

Commit

Permalink
fallback to DEFAULT_LARK_TENANT
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Nov 3, 2021
1 parent 2d1487b commit 58b6603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sa_tools_core/libs/notify/lark.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def send_message(addrs, content, **kwargs):
# }
# }
lark_bundle = LarkApp.load_from_configs(configs=json.loads(secret))
company = kwargs.get("company", DEFAULT_LARK_TENANT)
company = kwargs.get("company", DEFAULT_LARK_TENANT) or DEFAULT_LARK_TENANT
lark = lark_bundle.get_lark(company=company)
for addr in addrs:
res, response = lark.message.send_raw_message(
Expand Down

0 comments on commit 58b6603

Please sign in to comment.