From 4cf8a42ebbfda095272ca3f0c30834cae0d673b7 Mon Sep 17 00:00:00 2001 From: sclaiborne Date: Fri, 2 Feb 2024 12:19:47 -0800 Subject: [PATCH] Fix PVIReturnCodeText erroring if unknown error code --- ASTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASTools.py b/ASTools.py index c2f9d47..69f2f08 100644 --- a/ASTools.py +++ b/ASTools.py @@ -206,7 +206,7 @@ def CreateARSimStructure(RUCPackage:str, destination:str, version:str, startSim: # This because silent and autoclose mode do not support starting arsim pid = subprocess.Popen(os.path.join(destination, 'ar000loader.exe'), stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, creationflags=0x00000008) else: - logging.debug(f'Error in creating ARSimStructure code {process.returncode}: {PVIReturnCodeText[process.returncode]}') + logging.debug(f'Error in creating ARSimStructure code {process.returncode}: {PVIReturnCodeText.get(process.returncode)}') return process