소스 검색

Avoid deprecated Exception.message.

Jelmer Vernooij 11 년 전
부모
커밋
e8bc8b176a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dulwich/objects.py

+ 1 - 1
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):