From 63e506cc1f65bc316e829114a72da9e7d8d00ee7 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 22 Mar 2021 14:49:53 +0500 Subject: [PATCH] install log in py --- install/installLog.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/installLog.py b/install/installLog.py index 669cbd48f..3699a6834 100755 --- a/install/installLog.py +++ b/install/installLog.py @@ -28,5 +28,8 @@ class InstallLog: "%m.%d.%Y_%H-%M-%S") + "] " + message + "\n") file.close() - finalData = json.dumps({'ipAddress': InstallLog.ServerIP, "InstallCyberPanelStatus": message}) - requests.post(InstallLog.LogURL, data=finalData, verify=False) + try: + finalData = json.dumps({'ipAddress': InstallLog.ServerIP, "InstallCyberPanelStatus": message}) + requests.post(InstallLog.LogURL, data=finalData, verify=False) + except: + pass