Fixed an incorrect list of string interpolation arguments.

- Legacy-Id: 9918
This commit is contained in:
Henrik Levkowetz 2015-07-30 13:17:14 +00:00
parent cdb0d24aed
commit e737fa747c

View file

@ -77,4 +77,4 @@ class FileParser(object):
content = self.fd.file.read(4096)
mimetype = magic.from_buffer(content, mime=True)
if not mimetype == expected:
self.parsed_info.add_error('Expected an %s file of type "%s", found one of type "%s"' % (expected, mimetype))
self.parsed_info.add_error('Expected an %s file of type "%s", found one of type "%s"' % (ext.upper(), expected, mimetype))