From 0903ee015fa898ef453ca4f64564964401555a57 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 19 Jan 2021 15:27:04 +0500 Subject: [PATCH] add progress to install --- install/installLog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/installLog.py b/install/installLog.py index eef104cbf..2c2b8db39 100755 --- a/install/installLog.py +++ b/install/installLog.py @@ -13,7 +13,10 @@ class InstallLog: elif message.find('mount -o') > -1 or message.find('usermod -G lscpd,') > -1: message = '%s,%s' % (message.replace(',', '-'), InstallLog.currentPercent) else: - InstallLog.currentPercent = message.split(',')[1] + try: + InstallLog.currentPercent = message.split(',')[1] + except: + pass file = open(InstallLog.fileName,'a') file.writelines("[" + time.strftime(