scripting: unify exception handling, show db name
authorMarko Kreen <markokr@gmail.com>
Fri, 24 Apr 2009 14:32:28 +0000 (17:32 +0300)
committerMarko Kreen <markokr@gmail.com>
Tue, 28 Apr 2009 12:02:06 +0000 (15:02 +0300)
commit4fd8ea78848a8bdb1801ddd5be65da10ed6bdb05
treee31cbf838c100bfe1901f12ae264117cf7ae0858
parentd92a50005f33120981b9e9d0b4a77c234758adfc
scripting: unify exception handling, show db name

Have single place where exceptions are handled.

psycopg attaches .cursor to each exception,
use that to show connection name in error messages.
python/skytools/scripting.py