Commit 25630532 authored by wjblanke's avatar wjblanke Committed by Gene Hoffman
Browse files

fix for 3.8 python pull 13528 - 38exceptwjb (#333)

* fix for 3.8 python pull 13528 - https://github.com/python/cpython/pull/13528
* changes
* flake8
parent 6b266fc0
Showing with 10 additions and 5 deletions
+10 -5
......@@ -19,6 +19,7 @@ for setuptools_scm/PEP 440 reasons.
- Binary wheels for ARM64/aarch64 also build for python 3.7.
- See and remove plot directories from the UI and command line.
- You can now specify the memory buffer in UI.
- Optimized MPIR for Sandybridge and Ivybridge CPUs under Windows
### Changed
- `chia start wallet-server` changed to `chia start wallet`, for consistency.
......@@ -36,6 +37,7 @@ the blspy/bls-signatures library.
- Fixed spelling error for "folder" on Plot tab.
- Various node dependency security vulnerabilities have been fixed.
- Request peers was not returning currently connected peers older than 1 day.
- Fixed timeout exception inheritance changes under python 3.8 (pull 13528)
### Deprecated
- Removed legacy scripts such as chia-stop-server, chia-restart-harvester, etc.
......@@ -86,7 +88,6 @@ Graphical installer. Try `./chia -h` from
in Windows or
`/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon` on MacOS.
### Changed
- Minor changes have been made across the repositories to better support
compiling on OpenBSD. HT @n1000.
......
......@@ -379,7 +379,8 @@ class FullNode:
phr.wait(), timeout=sleep_interval,
)
break
except concurrent.futures.TimeoutError:
# https://github.com/python/cpython/pull/13528
except (concurrent.futures.TimeoutError, asyncio.TimeoutError):
total_time_slept += sleep_interval
self.log.warning("Did not receive desired header hashes")
......
......@@ -64,7 +64,8 @@ class SyncBlocksProcessor:
try:
await asyncio.wait_for(future, timeout=self.SLEEP_INTERVAL)
break
except concurrent.futures.TimeoutError:
# https://github.com/python/cpython/pull/13528
except (concurrent.futures.TimeoutError, asyncio.TimeoutError):
try:
await future
except asyncio.CancelledError:
......
......@@ -525,7 +525,8 @@ class WalletNode:
].wait()
await asyncio.wait_for(aw, timeout=sleep_interval)
break
except concurrent.futures.TimeoutError:
# https://github.com/python/cpython/pull/13528
except (concurrent.futures.TimeoutError, asyncio.TimeoutError):
total_time_slept += sleep_interval
self.log.info("Did not receive desired headers")
......@@ -635,7 +636,8 @@ class WalletNode:
future = asyncio.gather(*awaitables, return_exceptions=True)
try:
await asyncio.wait_for(future, timeout=sleep_interval)
except concurrent.futures.TimeoutError:
# https://github.com/python/cpython/pull/13528
except (concurrent.futures.TimeoutError, asyncio.TimeoutError):
try:
await future
except asyncio.CancelledError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment