From c474289e3bbcfe35305edf2524a8ff7faa6e6b77 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Fri, 5 Jun 2015 15:28:51 +0200 Subject: [PATCH] distgit: Catch all errors With this, we should never fail silently any more. --- roles/distgit/files/dist-git-upload.cgi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/distgit/files/dist-git-upload.cgi b/roles/distgit/files/dist-git-upload.cgi index 1e3f76df53..4f62353642 100644 --- a/roles/distgit/files/dist-git-upload.cgi +++ b/roles/distgit/files/dist-git-upload.cgi @@ -237,4 +237,8 @@ def main(): print "Error with fedmsg", str(e) if __name__ == '__main__': - main() + try: + main() + + except Exception as e: + send_error(str(e))