如果#python中有错误,如何在循环中添加错误消息?

时间:2019-04-05 14:20:30

标签: python

每次登录后我都想添加一条错误消息。

 try {
            let response = await fetch(
                 'https://your/rest/endpoint/with/json'
            );
            if (response.ok) {

                if (!_isMounted) {
                    console.log('oops! ' + SCREEN_NAME + ' was unmounted before async');
                    return; // just bail if component is no longer mounted
                }

                let responseJson = await response.json();
`

0 个答案:

没有答案