X-Git-Url: https://git.ralfj.de/git-mirror.git/blobdiff_plain/b13f671882eb0d0e302860144103870f38f4a062..8978aa1dcec412c9782d73e097ac864c903e0e2c:/githook.py diff --git a/githook.py b/githook.py index 3d546be..47a87e9 100755 --- a/githook.py +++ b/githook.py @@ -45,7 +45,7 @@ if __name__ == "__main__": repo.update_mirrors(ref, oldsha, newsha) except Exception as e: if repo is not None: - repo.mail_owner("There was a problem running the git-mirror git hook:\n\n{0}".format(traceback.format_exc())) + repo.mail_owner("There was a problem running the git-mirror git hook:\n\n{}".format(traceback.format_exc())) # do not print all the details - sys.stderr.write("We have a problem:\n{0}".format('\n'.join(traceback.format_exception_only(type(e), e)))) + sys.stderr.write("We have a problem:\n{}".format('\n'.join(traceback.format_exception_only(type(e), e))))