mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
Fix for pybricks/support#213 (#243)
Fix Code completion for "try:" snippets have a syntax error pybricks/support#213
This commit is contained in:
@@ -127,26 +127,26 @@ snippet .
|
||||
snippet try Try/Except
|
||||
try:
|
||||
\${1:# TODO: write code...}
|
||||
except \${2:Exception}, \${3:e}:
|
||||
except \${2:Exception} as \${3:e}:
|
||||
\${4:raise $3}
|
||||
snippet try Try/Except/Else
|
||||
try:
|
||||
\${1:# TODO: write code...}
|
||||
except \${2:Exception}, \${3:e}:
|
||||
except \${2:Exception} as \${3:e}:
|
||||
\${4:raise $3}
|
||||
else:
|
||||
\${5:# TODO: write code...}
|
||||
snippet try Try/Except/Finally
|
||||
try:
|
||||
\${1:# TODO: write code...}
|
||||
except \${2:Exception}, \${3:e}:
|
||||
except \${2:Exception} as \${3:e}:
|
||||
\${4:raise $3}
|
||||
finally:
|
||||
\${5:# TODO: write code...}
|
||||
snippet try Try/Except/Else/Finally
|
||||
try:
|
||||
\${1:# TODO: write code...}
|
||||
except \${2:Exception}, \${3:e}:
|
||||
except \${2:Exception} as \${3:e}:
|
||||
\${4:raise $3}
|
||||
else:
|
||||
\${5:# TODO: write code...}
|
||||
|
||||
Reference in New Issue
Block a user