Explorar o código

Fix error message if name happens to be a tuple.

Jelmer Vernooij %!s(int64=5) %!d(string=hai) anos
pai
achega
a367410f2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/object_store.py

+ 1 - 1
dulwich/object_store.py

@@ -456,7 +456,7 @@ class PackBasedObjectStore(BaseObjectStore):
             sha = name
             hexsha = None
         else:
-            raise AssertionError("Invalid object name %r" % name)
+            raise AssertionError("Invalid object name %r" % (name, ))
         for pack in self._iter_cached_packs():
             try:
                 return pack.get_raw(sha)