Modify sketch.py
modify try-except