Demux summarize error: Plugin error from demux- 'NoneType' object has no attribute 'strip'

Thanks @ebolyen for the code. SO much faster than me trying to write the code or do them one by one.
@thermokarst We have found our culprit. One of the files is not a 0.

> 0 TKnotts0517_G779_2.fastq
> 0 TKnotts0517_G780_1.fastq
> 0 TKnotts0517_G780_2.fastq
> 0 TKnotts0517_G790_1.fastq
> 0 TKnotts0517_G790_2.fastq
> 0 TKnotts0517_G843_1.fastq
> 0 TKnotts0517_G843_2.fastq
> 0 TKnotts0517_G844_1.fastq
> 0 TKnotts0517_G844_2.fastq
> 0 TKnotts0517_G845_1.fastq
> 0 TKnotts0517_G845_2.fastq
> 0 TKnotts0517_G846_1.fastq
> 0 TKnotts0517_G846_2.fastq
> 0 TKnotts0517_G851_1.fastq
> 0 TKnotts0517_G851_2.fastq
> **3 TKnotts0517_G855_1.fastq**
> 0 TKnotts0517_G855_2.fastq
> 0 TKnotts0517_G856_1.fastq
> 0 TKnotts0517_G856_2.fastq
> 0 TKnotts0517_G859_1.fastq
> 0 TKnotts0517_G859_2.fastq
> 0 TKnotts0517_G860_1.fastq
> 0 TKnotts0517_G860_2.fastq
> 0 TKnotts0517_G883_1.fastq
> 0 TKnotts0517_G883_2.fastq
wc -l /media/sf_qiime/MMPC/Berryman/new_data/TKnotts0517_G855_1.fastq

> 128251 /media/sf_qiime/MMPC/Berryman/new_data/TKnotts0517_G855_1.fastq
tail /media/sf_qiime/MMPC/Berryman/new_data/TKnotts0517_G855_1.fastq

> CCTGTTTGCTCCCCACGCTTTCGAGCCTCAACGTCAGTTACGGTCCAGTAAGCCGCCTTCGCCACCGGTGTTCCTCCTAATATCTACGCATTTCACCGCTACACTAGGAATTCCGCTTACCCCTCCCGCACTCTAGCCCGCCAGTTTCCAAAGCAGTTCCGCAGTTAAGCTGCGGCATTTCACTTCAGACTTGCCGTACCGTCTACGCTCCCTTTACACCCAGTCAATCCGGATAACGCTTGCTCCCTAC
> +
> BBABBFFFFBDF2A4AEGGGGFEDBBEGF3GFF2FFGGGHHGCGEEHHHHFHGFGGGGGFFEGGGHGGF?E1BDHHHHHGF4EFGHGGCGDEHHHHHGGGEE3F3FGHHHHHHHHEGFGHFFGGFEFGGCGFGGHHHHHGGGGFHDGHHHH0GFCHHHHH?D-?D00:0:0:;:9@-;90BFFFGG00CBB990/ACADFFFFFEB.;ED.A:FFBFFFFFF.F///B/FA-.;DFFFFDEEF/;BFF/9
> @M01533:390:000000000-B4NPH:1:1114:10632:4694 1:N:0:0
> CCTGTTCGATCCCCACGCTTTCGTGCCTCAGCGTCAGTATGGAGCCGGTATGCTGCCTTCGCAATCGGAGTTCTTCGCGATATCTAAGCATTTCACCGCTACACCACGCATTCCGCTTACTTCTCGCTCACTCAAGGCACCCAGTTTCAACGGCTCTCCGCGGTTGAGCCCCGCCATTTTCCCGCTTCGCTAACCGTCCGCCTTCGCCCCCCTTTAACCCAATTAATCCCGTTAACGCCCGCCTCCTCCC
> +
> 3AAAAFFAABFBGGFEEGGGGFAFBA2A33FGEEE2EFFD5A5ABFEEEF1GH5GGFHHBFE111BFD>EE3BGGH11//EEEDGH4FFFHHBBHHFGEEEEGG3?/EFCEGF2BE/<?@@GFGH///<CFHH0?G1/>F..F.GHBGHHF.<@AA/0<..:A.:-;/09CD----.=0;00;.--..-.9.A/.-;.;--;../...A;@-9./;/99A.9.///;;9/..9../99---;-.9;BFF?
> @M01533:390:000000000-B4NPH:1:1114:10632:4694 1:N:0:0

There appears to be 2 extra lines at bottom of file. Easy way to edit .fastq?

Thanks,

Trina