diff options
author | Ralf Jung <post@ralfj.de> | 2015-03-06 13:20:13 +0100 |
---|---|---|
committer | Ralf Jung <post@ralfj.de> | 2015-03-06 13:20:13 +0100 |
commit | 9e8ef5ff99e70c7cc97445acbd91abaf539fd536 (patch) | |
tree | 3778913b8758d6c0c8e45ab8ac45d6269152a579 /githook.py | |
parent | a0776d1336cd8391798c8e326fbac3a5b57b5be1 (diff) |
avoid needless format string position identifiers
Diffstat (limited to 'githook.py')
-rwxr-xr-x | githook.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)))) |