From b10d8606cc8cf43008fa5ec47bdf2b356cc1b5e5 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Fri, 20 Feb 2015 08:36:20 +0100 Subject: [PATCH] at least print error messages to screen (helps debugging ^^) --- QtPyLoT.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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