[tor-commits] [flashproxy/master] Raise an exception on non-zero exit from flashproxy-reg-url.
dcf at torproject.org
dcf at torproject.org
Sun May 19 16:11:40 UTC 2013
commit 334623e87fdbebbd967aedb25837dd90d0ddb4f5
Author: David Fifield <david at bamsoftware.com>
Date: Sun May 19 00:45:12 2013 -0700
Raise an exception on non-zero exit from flashproxy-reg-url.
---
flashproxy-reg-appspot | 2 ++
1 file changed, 2 insertions(+)
diff --git a/flashproxy-reg-appspot b/flashproxy-reg-appspot
index dd1f8ff..84af0a3 100755
--- a/flashproxy-reg-appspot
+++ b/flashproxy-reg-appspot
@@ -163,6 +163,8 @@ def generate_url(addr):
command.append(format_addr(addr))
p = subprocess.Popen(command, stdout=subprocess.PIPE)
stdout, stderr = p.communicate()
+ if p.returncode != 0:
+ raise ValueError("%s exited with status %d" % (FLASHPROXY_REG_URL, p.returncode))
return stdout.strip()
# Certificate validation and pinning for urllib2. Inspired by
More information about the tor-commits
mailing list