From e8bc8b176aa537899d3f0f298f4ff4c2a105db8a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 18 Jan 2014 19:44:44 +0000 Subject: [PATCH] Avoid deprecated Exception.message. --- dulwich/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dulwich/objects.py b/dulwich/objects.py index e5b8c2a4a..754f9a356 100644 --- a/dulwich/objects.py +++ b/dulwich/objects.py @@ -91,7 +91,7 @@ def hex_to_sha(hex): except TypeError as exc: if not isinstance(hex, str): raise - raise ValueError(exc.message) + raise ValueError(exc.args[0]) def hex_to_filename(path, hex):