[tor-commits] [ooni-probe/master] Import SocksiPy and handle erro

art at torproject.org art at torproject.org
Fri Feb 10 20:38:56 UTC 2012


commit 23d5d1108fb8f550c0ffafb0b3255d600b864589
Author: Arturo Filastò <hellais at gmail.com>
Date:   Fri Feb 10 21:39:05 2012 +0100

    Import SocksiPy and handle erro
---
 refactor/plugoo.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/refactor/plugoo.py b/refactor/plugoo.py
index de33445..079a58f 100644
--- a/refactor/plugoo.py
+++ b/refactor/plugoo.py
@@ -15,6 +15,10 @@ import os
 
 import yaml
 
+try:
+    import socks
+except:
+    "Error SocksiPy is not installed!"
 import socket
 
 import logging



More information about the tor-commits mailing list