for flows triggered an exception if goto_assignments was used on the keyword. found with the help of sith.py

This commit is contained in:
Dave Halter committed 2014-04-16 09:57:01 +02:00
1 parent a341791fda
commit 15fdecdb61
3 files changed
+15 -5

No files matched your search

+3
View File
@@ -266,6 +266,9 @@ class Script(object):
stmt = r.module.statements[-1]
except IndexError:
raise NotFoundError()
if isinstance(stmt, pr.Flow):
raise NotFoundError()
user_stmt = self._parser.user_stmt()
if user_stmt is None:
# Set the start_pos to a pseudo position, that doesn't exist but works