Explorar o código

keyboardinterrupt for the check loop

Gamaliel Espinoza %!s(int64=8) %!d(string=hai) anos
pai
achega
991dd65467
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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: