Fix flake8 violation

This commit is contained in:
Takeshi KOMIYA
2017-02-18 00:44:03 +09:00
parent 85cb8d7b50
commit b0acce8f55

View File

@@ -203,7 +203,7 @@ class LiteralIncludeReader(object):
return lines
except (IOError, OSError) as exc:
raise IOError(_('Include file %r not found or reading it failed') % filename)
except UnicodeError as exc:
except UnicodeError:
raise UnicodeError(_('Encoding %r used for reading included file %r seems to '
'be wrong, try giving an :encoding: option') %
(self.encoding, filename))