Onionr/src/utils/bettersleep.py
2020-01-31 07:35:44 -06:00

11 lines
177 B
Python

from time import sleep
def better_sleep(wait: int):
"""Sleep catching ctrl c for wait seconds."""
try:
sleep(wait)
except KeyboardInterrupt:
pass