sublime-sqlexec icon indicating copy to clipboard operation
sublime-sqlexec copied to clipboard

Missing password gives KeyError for pg

Open jacobsvante opened this issue 10 years ago • 0 comments

I don't use a password for my local postgresql database so I didn't specify the password property for my connection. This worked so so.. This is what the console gives me when I try to List connections:

Traceback (most recent call last):
  File "SQLExec in /Users/jacob/Library/Application Support/Sublime Text 3/Installed Packages/SQLExec.sublime-package", line 140, in sqlChangeConnection
  File "SQLExec in /Users/jacob/Library/Application Support/Sublime Text 3/Installed Packages/SQLExec.sublime-package", line 120, in __init__
KeyError: 'password'

Just adding "password": "" fixes it but I thought this might be worth mentioning.

jacobsvante avatar Dec 09 '14 07:12 jacobsvante