在Django捕获例外
我一直在使用Django和Vuejs构建一个应用程序。该应用程序使用YouTube API根据我正在构建的网站中设置的一些条件来删除视频。在某些情况下,我会遇到一个非常奇怪的错误,但我无法捕获。可以采取什么措施来捕获错误? 请参阅屏幕截图:错误发生在我打印错误1的地方。在这里发生许多不同的错误时间,我无法捕获它,因此我可以根据错误显示自定义的消息。
I have been building an application using Django and Vuejs. The application using YouTube API to scrap for videos based on a few conditions that are set in the website that I am building. For some conditions I am getting a very weird error which I am not able to catch. What can be done to catch the error?
Refer the screenshot: The error occurs at the place where I am printing Error 1. So many different times of errors occur here and I am not able to catch it, so that I can display customized messages based on the error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论