convertsql: get better errors from postgresql on first connection

This commit is contained in:
Frédéric Péters 2013-06-12 22:45:26 +02:00
parent 1c15b65dd7
commit 995e75d30a
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ class CmdConvertToSql(Command):
'port': sub_options.port,
}
sql.get_connection_and_cursor(new=True)
print 'converting users'
from users import User
sql.do_user_table()