Explorar o código

Fix checksum error message.

Jelmer Vernooij %!s(int64=16) %!d(string=hai) anos
pai
achega
514f6627b6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: