output fix femtofox

Python 3.10.12 had issues
This commit is contained in:
SpudGunMan
2024-12-15 01:04:34 -08:00
parent 920f951e47
commit e2bb480f5f
+1 -1
View File
@@ -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: