Index: config.py ================================================================== --- config.py +++ config.py @@ -310,12 +310,17 @@ while fn and len(fn) and not os.path.exists(fn): fn, add = os.path.split(fn) intfn = add + "/" + intfn if len(fn) >= 3 and intfn and zipfile.is_zipfile(fn): src = zipfile.ZipFile(fn, "r").read(intfn.strip("/")) + + if not src: + src = "" + if type(src) is not str: + src = src.decode("utf-8") - return plugin_meta_extract(src or "", fn) + return plugin_meta_extract(src, fn) # Actual comment extraction logic def plugin_meta_extract(src="", fn=None, literal=False):