commit
dc3dc2051d
@ -578,14 +578,14 @@ endsnippet
|
|||||||
snippet try "Try / Except" b
|
snippet try "Try / Except" b
|
||||||
try:
|
try:
|
||||||
${1:${VISUAL:pass}}
|
${1:${VISUAL:pass}}
|
||||||
except ${2:Exception}, ${3:e}:
|
except ${2:Exception} as ${3:e}:
|
||||||
${4:raise $3}
|
${4:raise $3}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet trye "Try / Except / Else" b
|
snippet trye "Try / Except / Else" b
|
||||||
try:
|
try:
|
||||||
${1:${VISUAL:pass}}
|
${1:${VISUAL:pass}}
|
||||||
except ${2:Exception}, ${3:e}:
|
except ${2:Exception} as ${3:e}:
|
||||||
${4:raise $3}
|
${4:raise $3}
|
||||||
else:
|
else:
|
||||||
${5:pass}
|
${5:pass}
|
||||||
@ -594,7 +594,7 @@ endsnippet
|
|||||||
snippet tryf "Try / Except / Finally" b
|
snippet tryf "Try / Except / Finally" b
|
||||||
try:
|
try:
|
||||||
${1:${VISUAL:pass}}
|
${1:${VISUAL:pass}}
|
||||||
except ${2:Exception}, ${3:e}:
|
except ${2:Exception} as ${3:e}:
|
||||||
${4:raise $3}
|
${4:raise $3}
|
||||||
finally:
|
finally:
|
||||||
${5:pass}
|
${5:pass}
|
||||||
@ -603,7 +603,7 @@ endsnippet
|
|||||||
snippet tryef "Try / Except / Else / Finally" b
|
snippet tryef "Try / Except / Else / Finally" b
|
||||||
try:
|
try:
|
||||||
${1:${VISUAL:pass}}
|
${1:${VISUAL:pass}}
|
||||||
except${2: ${3:Exception}, ${4:e}}:
|
except${2: ${3:Exception} as ${4:e}}:
|
||||||
${5:raise}
|
${5:raise}
|
||||||
else:
|
else:
|
||||||
${6:pass}
|
${6:pass}
|
||||||
|
Loading…
Reference in New Issue
Block a user