#782: svm_training.py, add 'similar' logic in 'try' statement