Skip to content

Commit

Permalink
assert message --> assert False, message
Browse files Browse the repository at this point in the history
  • Loading branch information
rizar committed Dec 23, 2020
1 parent 3c60030 commit 2623570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def parse_col(toks, start_idx, tables_with_alias, schema, default_tables=None):
if tok == 'as':
raise DerivedFieldAliasError(toks[idx + 1])
else:
assert "Error col: {}".format(tok)
assert False, "Error col: {}".format(tok)

if in_parentheses:
assert toks[idx + 1] == ')'
Expand Down

0 comments on commit 2623570

Please sign in to comment.