karplus / PteroDAQ

Other
3 stars 2 forks source link

Error message on canceled save #12

Closed karplus closed 9 years ago

karplus commented 10 years ago

Original report by kevin_karplus (Bitbucket: kevin_karplus, ).


Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/init.py", line 1482, in call return self.func(*args) File "pterodaq/daq/gui.py", line 278, in savefile daq.save(fn, notesbox.get('1.0', 'end'), powervar.get()) File "pterodaq/daq/core.py", line 76, in save with open(fn, 'w') as f: FileNotFoundError: [Errno 2] No such file or directory: ''

karplus commented 9 years ago

Original comment by kevin_karplus (Bitbucket: kevin_karplus, ).


Fixed, and added save-before-quitting dialog for unsaved data.