work on the ability to attach to existing Tor
This commit is contained in:
parent
bffef46e89
commit
840563f75c
5 changed files with 64 additions and 21 deletions
10
src/utils/bettersleep.py
Normal file
10
src/utils/bettersleep.py
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue