commit 573921df72ddd04bec92ac6f02adc2f589e511f7
Author: Arturo Filastò <art(a)fuffa.org>
Date: Sat Dec 22 00:02:32 2012 +0100
Fix bug in printing log.warn
---
ooni/oonicli.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/ooni/oonicli.py b/ooni/oonicli.py
index 582a6ae..1c3edf6 100644
--- a/ooni/oonicli.py
+++ b/ooni/oonicli.py
@@ -174,10 +174,8 @@ def run():
try:
checkForRoot()
except PermissionsError, pe:
- m = ("Capturing packets requires administrator/root privileges. ",
- "Run ooniprobe as root or set 'includepcap = false' in ",
- "ooniprobe.conf .")
- log.warn("%s" % m)
+ log.warn("Capturing packets requires administrator/root privileges. ")
+ log.warn("Run ooniprobe as root or set 'includepcap = false' in ooniprobe.conf .")
sys.exit(1)
else:
log.msg("Starting packet capture")