summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-03-26 15:40:03 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-03-26 15:40:03 (GMT)
commit05730797d888a62097d8c46a7155fff504e1658c (patch)
tree8b73d7794750b73d49d7c06776b84fdc55010af2 /src/python
parent04a9cbcb8855e64db660a8c6e23d79114b4afd83 (diff)
downloadpowder-05730797d888a62097d8c46a7155fff504e1658c.zip
powder-05730797d888a62097d8c46a7155fff504e1658c.tar.gz
misc stuff
Diffstat (limited to 'src/python')
-rw-r--r--src/python/tpt_console.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/tpt_console.py b/src/python/tpt_console.py
index 315267e..c4b870c 100644
--- a/src/python/tpt_console.py
+++ b/src/python/tpt_console.py
@@ -12,7 +12,10 @@ class logger:
def write(self,txt):
txt=txt.strip().split("\n")[-1]
repr(txt)
- tpt.log(txt)
+ try:
+ tpt.log(txt)
+ except:#yeah, this happens.
+ pass
if(DEBUG==False):
sys.stdout=logger()
sys.stderr=logger()