How to catch an exception in Python

Publicado el: 05 julio 2023
en el canal de: Python Morsels
267
14

Is your Python program printing out a traceback? You have an uncaught exception! You can catch that exception with a `try`-`except` block.

Read an article version of this video at https://pym.dev/how-to-catch-an-excep...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 A program that counts TODOs in a file
00:58 Python prints a traceback for unhandled exceptions
01:21 Reading our traceback to figure out where the exception occurred
01:48 Handling an exception with a try-except block
02:57 Summary


En esta página del sitio puede ver el video en línea How to catch an exception in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Python Morsels 05 julio 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 267 veces y le gustó 14 a los espectadores. Disfruta viendo!