]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(copy): propagate errors raised in the worker thread
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 24 Mar 2022 15:52:05 +0000 (16:52 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Mar 2022 17:40:33 +0000 (18:40 +0100)
commit47b51f952369f572f98a2a5ca525f94ae83d85ca
treea9ccd609ded954b07b54e9e42c2dfed7671f93ab
parent4d5698ff98eefa3a58500708a81916237922e195
fix(copy): propagate errors raised in the worker thread

Previously, an error in the worker thread was printed to stderr, but
processing continued, for no result but no exception.

Problem found in #255, but unrelated to it.
docs/news.rst
psycopg/psycopg/copy.py
tests/test_copy.py
tests/test_copy_async.py