Skip to content

Commit

Permalink
Merge 397b846 into cb9a5d4
Browse files Browse the repository at this point in the history
  • Loading branch information
Amat Martínez committed Aug 26, 2019
2 parents cb9a5d4 + 397b846 commit 2f734d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ooquery/ooquery.py
Expand Up @@ -64,6 +64,13 @@ def fields(self):
fields.append(table_field)
else:
table_field = self.parser.get_table_field(self.table, field)
if table_field is None:
raise AttributeError(
u"Field '{field}' does not exist on table: "
u"'{table}'".format(
field=field, table=self.table._name
)
)
fields.append(table_field.as_(self.as_.get(field, field)))
return fields

Expand Down

0 comments on commit 2f734d0

Please sign in to comment.