summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tko/parsers/version_1.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tko/parsers/version_1.py b/tko/parsers/version_1.py
index c78bab7f..fb82a99d 100644
--- a/tko/parsers/version_1.py
+++ b/tko/parsers/version_1.py
@@ -315,6 +315,8 @@ class parser(base.parser):
subdir_stack.pop()
else:
line.subdir = subdir_stack.pop()
+ if not subdir_stack[-1] and stack.size() > min_stack_size:
+ subdir_stack[-1] = line.subdir
# update the status, start and finished times
stack.update(line.status)
current_status = stack.end()