From: Thomas Jarosch Date: Sat, 25 Jan 2020 17:37:59 +0000 (+0100) Subject: Add missing iv fixed part in error output X-Git-Tag: v2.2~7^2~25 X-Git-Url: http://developer.intra2net.com/git/?p=python-delta-tar;a=commitdiff_plain;h=afa13ebc2ab6210f1fad5e3c00f9babd1711d632 Add missing iv fixed part in error output pylint complained: crypto.py:1357:36: E1306: Not enough arguments for format string (too-few-format-args) --- diff --git a/deltatar/crypto.py b/deltatar/crypto.py index 9140454..ccec5e4 100755 --- a/deltatar/crypto.py +++ b/deltatar/crypto.py @@ -1356,7 +1356,7 @@ class Decrypt (Crypto): and self.last_iv [1] != cnt - 1: raise NonConsecutiveIV ("iv %s counter not successor of " "last object (expected %d, found %d)" - % (iv_fmt (self.last_iv [1]), cnt)) + % (fixed, iv_fmt (self.last_iv [1]), cnt)) self.last_iv = (iv, cnt)