From the course: Advanced SQL for Application Development

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: When your Python application fails

Challenge: When your Python application fails

From the course: Advanced SQL for Application Development

Start my 1-month free trial

Challenge: When your Python application fails

(upbeat music) - [Instructor] Here is a two part challenge. First imagine your Python web application is failing and there's an unhandled exception and users are getting a stack trace. And the cause of the problem is that connection to the database is failing. When that happens, what Python programming statement would you use to trap the error? The second part of the challenge is this: what algorithm would you use in your error handling code when you're attempting to reconnect to the database?

Contents