diff --git a/libcnmc/cir_8_2021/FB5.py b/libcnmc/cir_8_2021/FB5.py index 3595d976..a2db62ca 100644 --- a/libcnmc/cir_8_2021/FB5.py +++ b/libcnmc/cir_8_2021/FB5.py @@ -179,7 +179,7 @@ def get_inst_name(element_id): else data_ip o_subestacio = trafo['ct'][1] - o_maquina = trafo.get('id_regulatori', trafo['name']).strip() or trafo['name'] + o_maquina = (trafo['id_regulatori'] or '').strip() or trafo['name'] o_cini = trafo['cini'] o_pot_maquina = format_f( float(trafo['potencia_nominal']) / 1000.0, decimals=3)