added rescue for get_enc_classes to bypass class list when local