Set all strings to be unicode when referencing fit.name. This won't catch all conversion errors, but it should catch most. (#1168)
This commit is contained in:
@@ -248,8 +248,8 @@ class GraphFrame(wx.Frame):
|
||||
self.subplot.plot(x, y)
|
||||
legend.append(fit.name)
|
||||
except:
|
||||
pyfalog.warning("Invalid values in '{0}'", fit.name)
|
||||
self.SetStatusText("Invalid values in '%s'" % fit.name)
|
||||
pyfalog.warning(u"Invalid values in '{0}'", fit.name)
|
||||
self.SetStatusText(u"Invalid values in '%s'" % fit.name)
|
||||
self.canvas.draw()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user