Skip to content

Commit 58b6603

Browse files
authored
fallback to DEFAULT_LARK_TENANT
1 parent 2d1487b commit 58b6603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sa_tools_core/libs/notify/lark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def send_message(addrs, content, **kwargs):
4949
# }
5050
# }
5151
lark_bundle = LarkApp.load_from_configs(configs=json.loads(secret))
52-
company = kwargs.get("company", DEFAULT_LARK_TENANT)
52+
company = kwargs.get("company", DEFAULT_LARK_TENANT) or DEFAULT_LARK_TENANT
5353
lark = lark_bundle.get_lark(company=company)
5454
for addr in addrs:
5555
res, response = lark.message.send_raw_message(

0 commit comments

Comments
 (0)