hobo: fix exception catching when configuring SQL
This commit is contained in:
parent
e894d0ce2e
commit
ebe74cf537
|
@ -328,7 +328,7 @@ class CmdCheckHobos(Command):
|
|||
postgresql_cfg[k] = v
|
||||
try:
|
||||
pgconn = psycopg2.connect(**postgresql_cfg)
|
||||
except psycopg2.Error:
|
||||
except psycopg2.Error as e:
|
||||
print >> sys.stderr, 'failed to connect to postgresql (%s)' % \
|
||||
psycopg2.errorcodes.lookup(e.pgcode)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue