[sysadmin-bin] Drop main() exception handler for testing



commit 3dc127d3ae77232edebd53884e6e0fc77225748e
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 29 09:03:00 2019 +0100

    Drop main() exception handler for testing

 git/post-receive-mirror-github | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index f6e86af..90b07d2 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -232,14 +232,4 @@ def main():
 
 
 if __name__ == "__main__":
-    try:
-        main()
-    except Exception as e:
-        msg = MIMEText(str(e))
-        msg['Subject'] = "[GITHUB HOOK] ERROR trying to push %s" %  os.getcwd()
-        msg['From']    = "noreply gnome org"
-        msg['To']      = "gnome-sysadmin gnome org"
-        msg['X-GNOME-SERVICE'] = "github-mirror"
-        server = smtplib.SMTP("localhost")
-        server.sendmail(msg['From'], msg['To'], msg.as_string())
-        server.quit()
+    main()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]