自动捕获异常

前置条件

import message_notify_python.catchexception
import message_notify_python.messagenotify

在项目入口或者异常位置,放置配置初始化代码

message_notify_python.messagenotify.MessageNotify({youProjectId},{youCompanyKey})

举例:

import message_notify_python.catchexception
import message_notify_python.messagenotify

def main():
    print(1/0)


if __name__ == '__main__':
    message_notify_python.messagenotify.MessageNotify(1,'xxxxxx')
    main()

results matching ""

    No results matching ""