#798: svm_json.py, define 'except' logic