[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] * Fixed logging error in MissingAssetException class.



commit 7fdca5a4e0d314ee56b1ecb3ee9c8bf85c45eed4
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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()

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits