summaryrefslogtreecommitdiff
path: root/src/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.py')
-rw-r--r--src/client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client.py b/src/client.py
index ddb2e901..0d81e0f2 100644
--- a/src/client.py
+++ b/src/client.py
@@ -18,6 +18,11 @@
# along with Poezio. If not, see <http://www.gnu.org/licenses/>.
import sys
+# disable any printout (this would mess the display)
+stderr = sys.stderr
+sys.stderr = open('/dev/null', 'w')
+sys.stdout = open('/dev/null', 'w')
+
from connection import Connection
from multiuserchat import MultiUserChat
from config import config
@@ -29,11 +34,6 @@ import curses
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
-# disable any printout (this would mess the display)
-stderr = sys.stderr
-sys.stderr = open('/dev/null', 'w')
-sys.stdout = open('/dev/null', 'w')
-
import traceback
def exception_handler(type_, value, tb):
"""