#5 Handle the situation where the Matcher stops matching
Merged 3 years ago by smooge. Opened 3 years ago by pingou.
pingou/mirrors-countme master  into  master

file modified
+5 -1
@@ -108,7 +108,11 @@ 

  

          # Duplicate data check (for sqlite output)

          if args.dupcheck:

-             item = next(match_iter)             # grab first matching item

+             try:

+                 item = next(match_iter)             # grab first matching item

+             except StopIteration:

+                 # If there is no next match, keep going

+                 continue

              if args.writer.has_item(item):      # if it's already in the db...

                  continue                        #   skip to next log

              else:                               # otherwise

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Pull-Request has been merged by smooge

3 years ago
Metadata