[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Raise an exception on non-zero exit from flashproxy-reg-url.
commit 334623e87fdbebbd967aedb25837dd90d0ddb4f5
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits