Skip to content

Commit 36d52e4

Browse files
authored
Update updown.py
adjust nesting level on skip end
1 parent 2182de2 commit 36d52e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchchat/utils/scripts/updown.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def process_command(
183183
suppress_list=suppress_list,
184184
)
185185
elif trailing_command == "end":
186+
skip_nesting_level -= 1
186187
if skip_nesting_level < 0:
187188
output(
188189
"echo 'skip end without matching skip begin in line {lineno} of {filename}'\nexit 1;",

0 commit comments

Comments
 (0)