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

Joel Grunbaum
22 hours ago ae4da922b93f932ab3b3ce96d9e68e94e5fded88
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 ((not self.config.email_everytime) and 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