From 8ed8698c9975d45c2edfb50952c654cdf004131b Mon Sep 17 00:00:00 2001 From: usmannasir Date: Mon, 14 Oct 2024 15:50:45 +0500 Subject: [PATCH] bug fix: deploy wp to end user --- plogical/applicationInstaller.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 53da3e288..e84f7b50c 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -1914,6 +1914,9 @@ class ApplicationInstaller(multi.Thread): DataToPass['apacheBackend'] = self.extraArgs['apacheBackend'] UserID = self.data['adminID'] + if os.path.exists(ProcessUtilities.debugPath): + logging.writeToFile(f'Data passed to wordpressInstallNew is {str(DataToPass)}') + try: website = Websites.objects.get(domain=DataToPass['domainName']) @@ -1926,7 +1929,11 @@ class ApplicationInstaller(multi.Thread): statusFile = open(tempStatusPath, 'w') statusFile.writelines('You dont own this site.[404]') statusFile.close() - except: + return 0 + except BaseException as msg: + + if os.path.exists(ProcessUtilities.debugPath): + logging.writeToFile(f'Error in finding existing site in wordpressInstallNew is {str(msg)}') ab = WebsiteManager() coreResult = ab.submitWebsiteCreation(UserID, DataToPass)