Explorar el Código

Merge pull request #706 from sabaini/master

asciidoc_reader: Don't add empty metadata values
Justin Mayer hace 8 años
padre
commit
3097bdf68b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      asciidoc_reader/asciidoc_reader.py

+ 2 - 0
asciidoc_reader/asciidoc_reader.py

@@ -51,6 +51,8 @@ class AsciiDocReader(BaseReader):
 
         metadata = {}
         for name, value in ad.asciidoc.document.attributes.items():
+            if value is None:
+                continue
             name = name.lower()
             metadata[name] = self.process_metadata(name, six.text_type(value))
         if 'doctitle' in metadata: