Commit 195a5dff authored by Andrey Golovizin's avatar Andrey Golovizin

Do not try to decode None filename

parent ad5cfb18
......@@ -37,7 +37,7 @@ class PybtexError(Exception):
def get_filename(self):
"""Return filename, if relevant."""
if isinstance(self.filename, six.text_type):
if self.filename is None or isinstance(self.filename, six.text_type):
return self.filename
else:
from .io import _decode_filename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment