1
0

python 3.10: fix some deprecation warnings and compat with 3.10

This commit is contained in:
SomberNight
2021-11-09 01:02:57 +01:00
parent ed0dd6eb22
commit 88a1c1a618
9 changed files with 18 additions and 18 deletions

View File

@@ -1393,7 +1393,7 @@ class WalletDB(JsonDB):
@profiler
def _write(self, storage: 'WalletStorage'):
if threading.currentThread().isDaemon():
if threading.current_thread().daemon:
self.logger.warning('daemon thread cannot write db')
return
if not self.modified():