diff options
Diffstat (limited to 'src/python')
| -rw-r--r-- | src/python/tpt_console.py | 5 |
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() |
