fix(config): return None if env var is empty or non-existent (#315)

* fix(config): return None if env var is empty or non-existent
* chore: fix pylint issues
* fix: add unit test for non-existent env vars
This commit is contained in:
2024-11-21 22:26:07 +00:00
committed by GitHub
parent 31269af218
commit f611b685b3
10 changed files with 172 additions and 82 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
"""Exit command."""
import logging
@ -8,7 +8,10 @@ log: logging.Logger = logging.getLogger(__name__)
class ExitCommand(Command):
"""Exit command class."""
def __init__(self) -> None:
"""Exit command class."""
super().__init__(
command_keyword="exit",
help_message="Exit",
@ -17,10 +20,10 @@ class ExitCommand(Command):
self.sender: str = ""
def pre_execute(self, message, attachment_actions, activity) -> None:
pass
"""Pre-execute method."""
def execute(self, message, attachment_actions, activity) -> None:
pass
"""Execute method."""
def post_execute(self, message, attachment_actions, activity) -> None:
pass
"""Post-execute method."""