Преглед на файлове

Prevent errors about string formatting when tuples are passed.

Jelmer Vernooij преди 12 години
родител
ревизия
cad2775ca7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      dulwich/object_store.py

+ 1 - 1
dulwich/object_store.py

@@ -623,7 +623,7 @@ class MemoryObjectStore(BaseObjectStore):
         elif len(sha) == 20:
             return sha_to_hex(sha)
         else:
-            raise ValueError("Invalid sha %r" % sha)
+            raise ValueError("Invalid sha %r" % (sha,))
 
     def contains_loose(self, sha):
         """Check if a particular object is present by SHA1 and is loose."""