在Django捕获例外

发布于 2025-02-07 10:14:58 字数 291 浏览 2 评论 0原文

我一直在使用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.

Area where the error was found

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文