Skip to content

Commit

Permalink
Avoid deprecated Exception.message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Jan 18, 2014
1 parent 084c7a6 commit e8bc8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dulwich/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e8bc8b1

Please sign in to comment.