~cjwatson/storm/psycopg2-missing-diag

Viewing all changes in revision 512.

  • Committer: Colin Watson
  • Date: 2019-08-11 14:37:04 UTC
  • Revision ID: cjwatson@canonical.com-20190811143704-nao0lmcc58ua06md
Fix error wrapping with psycopg2 < 2.5.

psycopg2.Error.diag was only added in 2.5, so don't try to wrap it if it
doesn't exist.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: