From fe7902682e78a3fbb96caf0e7310e9c8cf810bcf Mon Sep 17 00:00:00 2001 From: Paolo Lazzaroni Date: Tue, 22 Oct 2019 19:03:43 +0200 Subject: [PATCH] Update tor.py --- core/tor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/tor.py b/core/tor.py index 216d838..0484421 100644 --- a/core/tor.py +++ b/core/tor.py @@ -1,7 +1,10 @@ import socks import socket -from subprocess import getoutput as shell +try: + from subprocess import getoutput as shell +except ImportError: + from commands import getoutput as shell from time import sleep