Quietly catch keyboardinterrupt.
This commit is contained in:
parent
d5eb481863
commit
680dd13d88
1 changed files with 4 additions and 1 deletions
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue