Merge pull request #351 from r-darwish/python-except
Change variable order in Python try snippets
This commit is contained in:
commit
b36dc3059f
2 changed files with 7 additions and 7 deletions
|
@ -3,6 +3,6 @@
|
|||
# key: try
|
||||
# --
|
||||
try:
|
||||
$1
|
||||
except ${2:Exception}:
|
||||
$0
|
||||
except ${1:Exception}:
|
||||
$2
|
|
@ -3,8 +3,8 @@
|
|||
# key: try
|
||||
# --
|
||||
try:
|
||||
$1
|
||||
except $2:
|
||||
$3
|
||||
else:
|
||||
$0
|
||||
except $1:
|
||||
$2
|
||||
else:
|
||||
$3
|
Loading…
Reference in a new issue