After a quick spot of Python training I have implemented the above and it does work (of course;-) but it does leave a nasty error dialog on the screen instead of exiting gracefully.
Is there anything I can do to make this more graceful? Please excuse my lack of Python knowledge if this is what is holding me back from realising the answer.
|