added exception handling around obis_code parsing