Quietly catch keyboardinterrupt.

This commit is contained in:
voussoir 2020-06-03 20:35:07 -07:00
parent d5eb481863
commit 680dd13d88

View file

@ -60,7 +60,10 @@ def filetimelapse(filepath, rate):
time.sleep(rate)
def filetimelapse_argparse(args):
try:
return filetimelapse(args.filepath, args.rate)
except KeyboardInterrupt:
pass
def main(argv):
parser = argparse.ArgumentParser(description=__doc__)