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
From the course: Advanced SQL for Application Development
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?
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.