same problem with KeywordStatement

This commit is contained in:
Dave Halter committed 2014-04-16 10:28:12 +02:00
1 parent 15fdecdb61
commit ddc1cb0e6a
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -266,7 +266,7 @@ class Script(object):
stmt = r.module.statements[-1]
except IndexError:
raise NotFoundError()
if isinstance(stmt, pr.Flow):
if not isinstance(stmt, pr.Statement):
raise NotFoundError()
user_stmt = self._parser.user_stmt()