work on the ability to attach to existing Tor

This commit is contained in:
Kevin Froman 2020-01-30 23:47:48 -06:00
parent bffef46e89
commit 840563f75c
5 changed files with 64 additions and 21 deletions

10
src/utils/bettersleep.py Normal file
View file

@ -0,0 +1,10 @@
from time import sleep
def better_sleep(wait: int):
"""Sleep catching ctrl c for wait seconds."""
try:
sleep(wait)
except KeyboardInterrupt:
pass