fix ValueError message (otherwise '*' is interpreted as string repetition)
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 13 Jun 2016 11:06:28 +0000 (13:06 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Jun 2016 11:18:03 +0000 (13:18 +0200)
deltatar/tarfile.py

index a2637fb..aa07632 100644 (file)
@@ -1810,7 +1810,7 @@ class TarFile(object):
 
         # Init datastructures.
         if max_volume_size and max_volume_size < 3*BLOCKSIZE:
-            raise ValueError("max_volume_size needs to be at least %d" % 3*BLOCKSIZE)
+            raise ValueError("max_volume_size needs to be at least %d" % (3*BLOCKSIZE))
         if max_volume_size and not callable(new_volume_handler):
             raise ValueError("new_volume_handler needs to be set and be callable for multivolume support")
         if max_volume_size: