update scan.py

adding exception for some errors happens on scan.py while reading lists files and choices .