scan.py: Don't try to set a source that is not in the allowed source list

Signed-off-by: Jerome Flesch <jflesch@gmail.com>