From 8e9a09a70d57e67aa18acfb0b49880945160107f Mon Sep 17 00:00:00 2001 From: Guillaume Seguin Date: Sat, 4 Aug 2012 21:51:07 +0200 Subject: [PATCH] i18n fix to pronterface.py --- pronterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pronterface.py b/pronterface.py index a76d433..90581d6 100755 --- a/pronterface.py +++ b/pronterface.py @@ -325,7 +325,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): else: print _("You cannot set negative temperatures. To turn the hotend off entirely, set its temperature to 0.") except Exception, x: - print _("You must enter a temperature. (%s)" % (repr(x),)) + print _("You must enter a temperature. (%s)") % (repr(x),) if self.webInterface: self.webInterface.AddLog("You must enter a temperature. (%s)" % (repr(x),)) @@ -350,8 +350,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole): print _("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.") if self.webInterface: self.webInterface.AddLog("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.") - except: - print _("You must enter a temperature.") + except Exception, x: + print _("You must enter a temperature. (%s)") % (repr(x),) if self.webInterface: self.webInterface.AddLog("You must enter a temperature.")