Parcourir la source

keyboardinterrupt for the check loop

Gamaliel Espinoza il y a 8 ans
Parent
commit
991dd65467
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      tools/fourier/cli.py

+ 3 - 0
tools/fourier/cli.py

@@ -168,6 +168,9 @@ def main():
                         already_indexed += 1
                         print('already indexed: {}'.format(filename))
 
+                    except KeyboardInterrupt:
+                        break
+
             if not args.dry_run:
                 conn.commit()
             else: