[tor-commits] [flashproxy/js] Make it a log but not a fatal error when failing to register.
dcf at torproject.org
dcf at torproject.org
Sat Apr 7 12:16:54 UTC 2012
commit a374073b7b03b432a43123dde7b8d793143889cf
Author: David Fifield <david at bamsoftware.com>
Date: Sat Apr 7 02:03:09 2012 -0700
Make it a log but not a fatal error when failing to register.
---
connector.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/connector.py b/connector.py
index 38acbf7..5bdbda4 100755
--- a/connector.py
+++ b/connector.py
@@ -552,7 +552,10 @@ def register():
else:
command += [format_addr(options.facilitator_addr)]
command += ["-a", spec]
- p = subprocess.Popen(command)
+ try:
+ p = subprocess.Popen(command)
+ except OSError, e:
+ log(u"Failed to register: %s" % str(e))
def proxy_chunk_local_to_remote(local, remote):
try:
More information about the tor-commits
mailing list