Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjan97 committed Jul 24, 2023
1 parent 290ec21 commit eb55a28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ class GAQL:
def parse(cls, query):
m = cls.REGEX.match(query)
if not m:
raise ValueError
raise ValueError(f"incorrect GAQL query statement: {repr(query)}")

fields = [f.strip() for f in m.group("FieldNames").split(",")]
for field in fields:
if not cls.REGEX_FIELD_NAME.match(field):
raise ValueError
raise ValueError(f"incorrect GAQL query statement: {repr(query)}")

resource_name = m.group("ResourceName")
where = cls._normalize(m.group("WhereClause") or "")
Expand Down

0 comments on commit eb55a28

Please sign in to comment.