mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
yesterday 2ba5d0d287204c85e00ff1b5bd590862ce8768ee
src/archrepobuild/notifications.py
@@ -106,7 +106,7 @@
    async def send(self, summary: BuildSummary, config: Config) -> bool:
        """Send email notification."""
        if not self.config.enabled and (self.config.email_everytime or summary.failed == 0):
        if not self.config.enabled:
            return True
        if not self.config.to:
@@ -114,7 +114,7 @@
            return False
        # Only send on failures
        if summary.failed == 0:
        if (not self.config.email_everytime) and summary.failed == 0:
            logger.debug("No failures, skipping email notification")
            return True