[Pkg-bitcoin-commits] [python-quamash] 63/78: fixes #77
Jonas Smedegaard
dr at jones.dk
Tue Dec 19 01:19:56 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.6.0_dfsg-1
in repository python-quamash.
commit e5fc6b110830ebcc90496da07f1d75064eff6d08
Author: Mark Thomas West Harviston <mark.harviston at gmail.com>
Date: Sun Nov 19 22:55:11 2017 -0800
fixes #77
can't set the exception on the future if it's not in the PENDING state
---
quamash/_windows.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/quamash/_windows.py b/quamash/_windows.py
index fb586ef..e7e4e51 100644
--- a/quamash/_windows.py
+++ b/quamash/_windows.py
@@ -5,6 +5,7 @@
"""Windows specific Quamash functionality."""
import asyncio
+import sys
try:
import _winapi
@@ -39,9 +40,8 @@ class _ProactorEventLoop(asyncio.ProactorEventLoop):
try:
self._logger.debug('Invoking event callback {}'.format(callback))
value = callback(transferred, key, ov)
- except OSError as e:
- self._logger.warn('Event callback failed: {}'.format(e))
- f.set_exception(e)
+ except OSError:
+ self._logger.warning('Event callback failed', exc_info=sys.exc_info())
else:
f.set_result(value)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git
More information about the Pkg-bitcoin-commits
mailing list