Reinstated the try:except in pymine.py