开发者

Contiuning Crontab Script on Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action\

开发者 https://www.devze.com 2023-03-28 01:32 出处:网络
I get the Uncaught OAuthException: (#200) The user hasn\'t authorized the application t开发者_StackOverflow中文版o perform this action\\ error on occassion when a user changes their password, and I wa

I get the Uncaught OAuthException: (#200) The user hasn't authorized the application t开发者_StackOverflow中文版o perform this action\ error on occassion when a user changes their password, and I want to continue the crontab script, not causing it to end in a fatal error so I can handle the other users....

Is this possible?


So catch the exception! It's only a fatal error if your script doesn't catch it.

If you're not familiar with exceptions in PHP, they're documented at: http://php.net/language.exceptions

0

精彩评论

暂无评论...
验证码 换一张
取 消