Python Try-Except Block

Descripción

Create a try-except block for handling exceptions


File Template: ❌


Prefix

try:except


Scopes

python


Snippet de código

try:
	${1:# code that may raise an exception}
except ${2:Exception} as ${3:e}:
	${4:print(e)}