瀏覽代碼

Fix checksum error message.

Jelmer Vernooij 16 年之前
父節點
當前提交
514f6627b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/errors.py

+ 1 - 1
dulwich/errors.py

@@ -25,7 +25,7 @@ class ChecksumMismatch(Exception):
         self.expected = expected
         self.got = got
         self.extra = extra
-        if self.extra is not None:
+        if self.extra is None:
             Exception.__init__(self, 
                 "Checksum mismatch: Expected %s, got %s" % (expected, got))
         else: