diff --git a/biostools/extractors.py b/biostools/extractors.py index 6704832..f6bf2f4 100644 --- a/biostools/extractors.py +++ b/biostools/extractors.py @@ -906,7 +906,7 @@ class ImageExtractor(Extractor): # Read 64 KB, which is enough to ascertain any potential logo type, # even if embedded in the file. (Monorail SiS 550x: PCX in AMI module) dest_dir_file_path = os.path.join(dest_dir_0, dest_dir_file) - if os.path.isdir(dest_dir_file_path): + if os.path.isdir(dest_dir_file_path) or dest_dir_file == ':header:': continue f = open(dest_dir_file_path, 'rb') dest_dir_file_header = f.read(65536) @@ -943,6 +943,10 @@ class ImageExtractor(Extractor): # Get width and height for a Phoenix Graphics image. width, height = struct.unpack('