From e2bb480f5f738a34db256a2aacec7b49b370280a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 15 Dec 2024 01:04:34 -0800 Subject: [PATCH] output fix femtofox Python 3.10.12 had issues --- modules/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system.py b/modules/system.py index fc6da53..d7b62de 100644 --- a/modules/system.py +++ b/modules/system.py @@ -742,7 +742,7 @@ def getNodeFirmware(nodeID=0, nodeInt=1): # this is a workaround because .localNode.getMetadata spits out a lot of debug info which cant be suppressed # Create a StringIO object to capture the output_capture = io.StringIO() - with contextlib.redirect_stdout(output_capture): + with contextlib.redirect_stdout(output_capture), contextlib.redirect_stderr(output_capture): interface.localNode.getMetadata() console_output = output_capture.getvalue() if "firmware_version" in console_output: