From b81fdd9b60201066d21116c97f11fa0e824c2da0 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 21 Mar 2011 13:17:38 +0100 Subject: [PATCH] Use new get_encoded_writer() function. --- linkchecker-gui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkchecker-gui b/linkchecker-gui index 3b13ed32..3b3024a8 100755 --- a/linkchecker-gui +++ b/linkchecker-gui @@ -21,14 +21,14 @@ Check HTML pages for broken links. This is the GUI client. import sys from PyQt4.QtGui import QApplication, QStyleFactory, QErrorMessage from linkcheck.gui import LinkCheckerMain -from linkcheck import configuration, drop_privileges +from linkcheck import configuration, drop_privileges, i18n def excepthook (debugwidget, etype, evalue, tb): """Catch unhandled exceptions.""" from cStringIO import StringIO from PyQt4.QtCore import qWarning from linkcheck.director.console import internal_error - out = StringIO() + out = i18n.get_encoded_writer(out=StringIO()) internal_error(out=out, etype=etype, evalue=evalue, tb=tb) print >> out, debugwidget.getText() qWarning(out.getvalue())