Browse Source

Fix error message if name happens to be a tuple.

Jelmer Vernooij 5 years ago
parent
commit
a367410f2c
1 changed files with 1 additions and 1 deletions
  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)