diff --git a/QtPyLoT.py b/QtPyLoT.py index 58fd58b7..4efdcff4 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -322,8 +322,10 @@ class MainWindow(QMainWindow): self.data.exportEvent(self.fname, exform) except FormatError: return False - except AttributeError: + except AttributeError, e: + print 'warning: {0}'.format(e) fname = QFileDialog.getSaveFileName(self, 'Save event') + fname = fname[0] self.data.exportEvent(fname, exform) return True