nft-update-addresses: fix logging of thread exception

main
Felix Stupp 1 month ago
parent ecff468750
commit 5436d31ca8
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -71,7 +71,7 @@ logger = logging.getLogger(__name__)
def raise_and_exit(args: Any) -> None: def raise_and_exit(args: Any) -> None:
Timer(0.01, os._exit, args=(1,)).start() Timer(0.01, os._exit, args=(1,)).start()
logging.error(repr(args.exc_value)) logger.error(repr(args.exc_value))
logger.error( logger.error(
"\n".join(traceback.format_tb(args.exc_traceback)) "\n".join(traceback.format_tb(args.exc_traceback))
if args.exc_traceback != None if args.exc_traceback != None

Loading…
Cancel
Save