Catch exception which is thrown if an old Python-version is used