at least print error messages to screen (helps debugging ^^)

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-20 08:36:20 +01:00
parent 7dd1519f83
commit b10d8606cc

View File

@ -322,8 +322,10 @@ class MainWindow(QMainWindow):
self.data.exportEvent(self.fname, exform) self.data.exportEvent(self.fname, exform)
except FormatError: except FormatError:
return False return False
except AttributeError: except AttributeError, e:
print 'warning: {0}'.format(e)
fname = QFileDialog.getSaveFileName(self, 'Save event') fname = QFileDialog.getSaveFileName(self, 'Save event')
fname = fname[0]
self.data.exportEvent(fname, exform) self.data.exportEvent(fname, exform)
return True return True