diff --git a/profile.py b/profile.py index efa9919..8c93778 100644 --- a/profile.py +++ b/profile.py @@ -57,10 +57,10 @@ class PesterLog(object): try: 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: - msg = QtGui.QMessageBox(self) - msg.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)) - msg.show() + errmsg = QtGui.QMessageBox(self) + errmsg.setText("Warning: Pesterchum could not open the log file for %s!" % (handle)) + errmsg.setInformativeText("Your log for %s will not be saved because something went wrong. We suggest restarting Pesterchum. Sorry :(" % (handle)) + errmsg.show() continue self.convos[handle][format] = fp for (format, t) in modes.iteritems():