diff --git a/GUIs/AmpScanGUI.py b/GUIs/AmpScanGUI.py index 92523b4f807ced7bdaa2db07ca7be616c489b1a5..08465e9a793e6e9a98a4266a939985924db6ff7e 100644 --- a/GUIs/AmpScanGUI.py +++ b/GUIs/AmpScanGUI.py @@ -88,9 +88,13 @@ class AmpScanGUI(QMainWindow): return moving = str(self.alCont.moving.currentText()) self.files[moving].save(fname[0]) - if self.pnt is not None: + try: + self.pnt f = open(fname[0]+'.txt','w+') f.write('Picked Coordinates = {}'.format(self.pnt)) + except AttributeError: + print('A point has not been selected') + def display(self):