diff --git a/pleskdistup/actions/emails.py b/pleskdistup/actions/emails.py index 28dc4fa..48c7938 100644 --- a/pleskdistup/actions/emails.py +++ b/pleskdistup/actions/emails.py @@ -32,6 +32,12 @@ def _is_required(self) -> bool: except json.JSONDecodeError: log.warn(f"Failed to parse plesk sslmng results: {proc.stdout}") return False + except KeyError as e: + log.warn(f"There is no parameter '{e}' in the sslmng output.") + return False + except Exception as e: + log.warn(f"Failed to check sslmng configuration for dovecot: {e}. Type is {type(e)}") + raise e return True