[tor-commits] [metrics-tasks/master] Exit after downloading, or some people will hit the server for every run.
karsten at torproject.org
karsten at torproject.org
Wed Aug 1 09:23:48 UTC 2012
commit 0cb386b00b60bf38872e510bdb60de3708ddceb8
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Wed Aug 1 10:53:38 2012 +0200
Exit after downloading, or some people will hit the server for every run.
---
task-6329/tor-relays-stats.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/task-6329/tor-relays-stats.py b/task-6329/tor-relays-stats.py
index 8479dc3..60fd8e5 100755
--- a/task-6329/tor-relays-stats.py
+++ b/task-6329/tor-relays-stats.py
@@ -201,6 +201,8 @@ if '__main__' == __name__:
if options.download:
download_details_file()
+ print "Downloaded details.json. Re-run without --download option."
+ exit()
if not os.path.exists('details.json'):
parser.error("Did not find details.json. Re-run with --download.")
More information about the tor-commits
mailing list