add try except in stockid.py