oops misnamed variable

This commit is contained in:
Stephen Dranger 2011-12-02 02:36:16 -06:00
parent ec778eff75
commit 22fa9bf78e

View file

@ -57,10 +57,10 @@ class PesterLog(object):
try: try:
fp = codecs.open("%s/%s/%s/%s/%s.%s.txt" % (self.logpath, self.handle, handle, format, handle, time), encoding='utf-8', mode='a') fp = codecs.open("%s/%s/%s/%s/%s.%s.txt" % (self.logpath, self.handle, handle, format, handle, time), encoding='utf-8', mode='a')
except IOError: except IOError:
msg = QtGui.QMessageBox(self) errmsg = QtGui.QMessageBox(self)
msg.setText("Warning: Pesterchum could not open the log file for %s!" % (handle)) errmsg.setText("Warning: Pesterchum could not open the log file for %s!" % (handle))
msg.setInformativeText("Your log for %s will not be saved because something went wrong. We suggest restarting Pesterchum. Sorry :(" % (handle)) errmsg.setInformativeText("Your log for %s will not be saved because something went wrong. We suggest restarting Pesterchum. Sorry :(" % (handle))
msg.show() errmsg.show()
continue continue
self.convos[handle][format] = fp self.convos[handle][format] = fp
for (format, t) in modes.iteritems(): for (format, t) in modes.iteritems():