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

Do not try to decode None filename

parent ad5cfb18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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