From 2077fc0a7c204467c0be0e5c748ee5484f5b1ef8 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 31 Jul 2019 20:26:52 +0200 Subject: [PATCH] Fix bad indentation --- wo/cli/plugins/site_functions.py | 2 +- wo/core/shellexec.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index e36ec8f..519faae 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -1332,7 +1332,7 @@ def site_url_https(self, domain): WOVariables.wo_wpcli_path, domain)) except CommandExecutionError as e: Log.debug(self, "{0}".format(e)) - raise SiteError("plugin activation failed") + raise SiteError("migration to https failed") Log.info( self, "Site address updated " "successfully to https://{0}".format(domain)) diff --git a/wo/core/shellexec.py b/wo/core/shellexec.py index cfb43e1..77ba8a5 100644 --- a/wo/core/shellexec.py +++ b/wo/core/shellexec.py @@ -35,11 +35,11 @@ class WOShellExec(): .format(cmd_stdout, cmd_stderr)) return False except OSError as e: - Log.debug(self, str(e)) - raise CommandExecutionError + Log.debug(self, str(e)) + raise CommandExecutionError except Exception as e: - Log.debug(self, str(e)) - raise CommandExecutionError + Log.debug(self, str(e)) + raise CommandExecutionError def invoke_editor(self, filepath, errormsg=''): """