Commits

Jun Omae committed 26ea170

1.1.2dev: merged [12453] from 1.0-stable (fix for #11450)

  • Participants
  • Parent commits fe7e074
  • Branches trunk

Comments (0)

Files changed (1)

File trac/versioncontrol/web_ui/util.py

         assert path.startswith(root_path)
         path = root_name + path[root_len:]
         kwargs = {'mtime': node.last_modified}
+        data = None
         if node.isfile:
             data = node.get_processed_content(eol_hint='CRLF').read()
             properties = node.get_properties()
         elif node.isdir and path:
             kwargs['dir'] = True
             data = ''
-        zipfile.writestr(create_zipinfo(path, **kwargs), data)
+        if data is not None:
+            zipfile.writestr(create_zipinfo(path, **kwargs), data)
     zipfile.close()
 
     zip_str = buf.getvalue()