We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdb0d24 commit e737fa7Copy full SHA for e737fa7
1 file changed
ietf/submit/parsers/base.py
@@ -77,4 +77,4 @@ def parse_file_type(self, ext, expected):
77
content = self.fd.file.read(4096)
78
mimetype = magic.from_buffer(content, mime=True)
79
if not mimetype == expected:
80
- 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))
0 commit comments