diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2010-01-16 11:03:51 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2010-01-16 11:03:51 +0000 |
| commit | 44e03742d87ea518990ce9e20bee53c239456f20 (patch) | |
| tree | 36a291e5e89e760597d352b2d5527eb0fb1b2c2e /src/include/commands | |
| parent | 2edc31c439da20a6a43a27ca1e09aed0f26d324c (diff) | |
Improved printing of Python exceptions in PL/Python
Mimic the Python interpreter's own logic for printing exceptions instead
of just using the straight str() call, so that
you get
plpy.SPIError
instead of
<class 'plpy.SPIError'>
and for built-in exceptions merely
UnicodeEncodeError
Besides looking better this cuts down on the endless version differences
in the regression test expected files.
Diffstat (limited to 'src/include/commands')
0 files changed, 0 insertions, 0 deletions
