From 4b1fd356b8f8ca464203174a47ab5fa6a5cbc26b Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 11 Oct 2015 20:43:20 +0200 Subject: git-multimail: update to release 1.2.0 The changes are described in CHANGES. Contributions-by: Matthieu Moy Contributions-by: Elijah Newren Contributions-by: Edward d'Auvergne Contributions-by: Vadim Zeitlin Contributions-by: Paul Sokolovsky Contributions-by: Michael Haggerty Contributions-by: Elijah Newren Contributions-by: Richard Hansen Contributions-by: Job Snijders Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- contrib/hooks/multimail/post-receive.example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/hooks/multimail/post-receive.example') diff --git a/contrib/hooks/multimail/post-receive.example b/contrib/hooks/multimail/post-receive.example index 43f7b6b635..9975df7107 100755 --- a/contrib/hooks/multimail/post-receive.example +++ b/contrib/hooks/multimail/post-receive.example @@ -1,4 +1,4 @@ -#! /usr/bin/env python2 +#! /usr/bin/env python """Example post-receive hook based on git-multimail. @@ -42,7 +42,6 @@ import os import git_multimail - # It is possible to modify the output templates here; e.g.: #git_multimail.FOOTER_TEMPLATE = """\ @@ -61,8 +60,9 @@ config = git_multimail.Config('multimailhook') try: environment = git_multimail.GenericEnvironment(config=config) #environment = git_multimail.GitoliteEnvironment(config=config) -except git_multimail.ConfigurationException, e: - sys.exit(str(e)) +except git_multimail.ConfigurationException: + sys.stderr.write('*** %s\n' % sys.exc_info()[1]) + sys.exit(1) # Choose the method of sending emails based on the git config: -- cgit v1.2.3