summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
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()