Update vt.py

better error information