Trap errors in media.py

needs byte compiled version, pyo file deleted for now