Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
koljonen committed Aug 23, 2016
1 parent 8d2265a commit 4ba9d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pgcli/packages/sqlcompletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def suggest_type(full_text, text_before_cursor):
if full_text.startswith('\\i '):
return (Path(),)

# This is a temporary hack; the exception handling
# here should be removed once sqlparse has been fixed
try:
stmt = SqlStatement(full_text, text_before_cursor)
except (TypeError, AttributeError):
Expand Down

0 comments on commit 4ba9d1f

Please sign in to comment.