[tor-commits] [ooni-probe/master] * Fixed logging error in MissingAssetException class.
isis at torproject.org
isis at torproject.org
Thu Oct 4 14:41:15 UTC 2012
commit 7fdca5a4e0d314ee56b1ecb3ee9c8bf85c45eed4
Author: Isis Lovecruft <isis at torproject.org>
Date: Thu Oct 4 14:26:24 2012 +0000
* Fixed logging error in MissingAssetException class.
---
ooni/plugoo/assets.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ooni/plugoo/assets.py b/ooni/plugoo/assets.py
index 3974230..205d60d 100644
--- a/ooni/plugoo/assets.py
+++ b/ooni/plugoo/assets.py
@@ -57,5 +57,6 @@ class Asset:
class MissingAssetException(Exception):
"""Raised when an Asset necessary for running the Test is missing."""
def __init__(self, error_message):
- log.msg(error_message)
+ print error_message
+ import sys
return sys.exit()
More information about the tor-commits
mailing list