From e3620eb0683f54cd7828fe62fc03e46fcac5f4c1 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Fri, 8 Mar 2013 08:10:50 +0100 Subject: [PATCH] Renamed package. --- src/{rrtest => srtest}/__init__.py | 6 +++++- src/{rrtest => srtest}/check.py | 0 src/{rrtest => srtest}/interaction.py | 0 src/{rrtest => srtest}/opfunc.py | 0 src/{rrtest => srtest}/status.py | 0 src/{rrtest => srtest}/tool.py | 0 6 files changed, 5 insertions(+), 1 deletion(-) rename src/{rrtest => srtest}/__init__.py (90%) rename src/{rrtest => srtest}/check.py (100%) rename src/{rrtest => srtest}/interaction.py (100%) rename src/{rrtest => srtest}/opfunc.py (100%) rename src/{rrtest => srtest}/status.py (100%) rename src/{rrtest => srtest}/tool.py (100%) diff --git a/src/rrtest/__init__.py b/src/srtest/__init__.py similarity index 90% rename from src/rrtest/__init__.py rename to src/srtest/__init__.py index 18af66e..d67ae75 100644 --- a/src/rrtest/__init__.py +++ b/src/srtest/__init__.py @@ -100,4 +100,8 @@ def exception_trace(tag, exc, log=None): log.error("[%s] Exception: %s" % (tag, exc)) else: print >> sys.stderr, "[%s] ExcList: %s" % (tag, "".join(message),) - print >> sys.stderr, "[%s] Exception: %s" % (tag, exc) + try: + print >> sys.stderr, "[%s] Exception: %s" % (tag, exc) + except UnicodeEncodeError: + print >> sys.stderr, "[%s] Exception: %s" % ( + tag, exc.message.encode("utf-8", "replace")) diff --git a/src/rrtest/check.py b/src/srtest/check.py similarity index 100% rename from src/rrtest/check.py rename to src/srtest/check.py diff --git a/src/rrtest/interaction.py b/src/srtest/interaction.py similarity index 100% rename from src/rrtest/interaction.py rename to src/srtest/interaction.py diff --git a/src/rrtest/opfunc.py b/src/srtest/opfunc.py similarity index 100% rename from src/rrtest/opfunc.py rename to src/srtest/opfunc.py diff --git a/src/rrtest/status.py b/src/srtest/status.py similarity index 100% rename from src/rrtest/status.py rename to src/srtest/status.py diff --git a/src/rrtest/tool.py b/src/srtest/tool.py similarity index 100% rename from src/rrtest/tool.py rename to src/srtest/tool.py