summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/extract_table_names.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/extract_table_names.py b/examples/extract_table_names.py
index a3ca333..8f0065e 100644
--- a/examples/extract_table_names.py
+++ b/examples/extract_table_names.py
@@ -35,7 +35,7 @@ def extract_from_part(parsed):
for x in extract_from_part(item):
yield x
elif item.ttype is Keyword:
- raise StopIteration
+ return
else:
yield item
elif item.ttype is Keyword and item.value.upper() == 'FROM':