changed ImportError to Exception to allow django in python env