From 33ed3ad95a61252736fbf9691fecad016056e6be Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Tue, 27 Apr 2021 17:31:50 +0300 Subject: [PATCH] Minor fixes --- Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py b/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py index 65e8ff3f..c2ee36a0 100644 --- a/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py +++ b/Sources/pyOpenRPA/Orchestrator/__Orchestrator__.py @@ -325,7 +325,7 @@ def OrchestratorRestart(inGSettings=None): os.execl(sys.executable, os.path.abspath(__file__), *sys.argv) sys.exit(0) -def OrchestratorSessionSave(inGSettings=None): +def OrchestratorSessionSave(inGSettings): """ Orchestrator session save in file _SessionLast_RDPList.json (encoding = "utf-8") @@ -353,7 +353,7 @@ def OrchestratorSessionSave(inGSettings=None): if lL: lL.exception(f"Exception when dump data before restart the Orchestrator") return True -def OrchestratorSessionRestore(inGSettings=None): +def OrchestratorSessionRestore(inGSettings): """ Check _SessionLast_RDPList.json and _SessionLast_StorageDict.pickle in working directory. if exist - load into gsettings # _SessionLast_StorageDict.pickle (binary) @@ -370,7 +370,7 @@ def OrchestratorSessionRestore(inGSettings=None): lSessionLastRDPList = json.loads(lFile.read()) lFile.close() # Close the file os.remove("_SessionLast_RDPList.json") # remove the temp file - gSettingsDict["RobotRDPActive"]["RDPList"] = lSessionLastRDPList # Set the last session dict + inGSettings["RobotRDPActive"]["RDPList"] = lSessionLastRDPList # Set the last session dict if lL: lL.warning(f"RDP Session List was restored from previous Orchestrator session") # _SessionLast_StorageDict.pickle (binary) if os.path.exists("_SessionLast_StorageDict.pickle"):