Commit 51e8150e authored by Paul Graydon's avatar Paul Graydon

wendelin_telecom_base: Fix exception message capturing

parent 0e089a04
...@@ -12,11 +12,11 @@ def load_measurements(alogm): ...@@ -12,11 +12,11 @@ def load_measurements(alogm):
mlog.append(measurement) mlog.append(measurement)
except Exception as e: except Exception as e:
# Invalid measurement: simply skip it # Invalid measurement: simply skip it
LOG('WendelinTelecomCalcOrsKpi.loadMeasurements', WARNING, "Skipped data during KPI calculation: %s" % e) LOG('WendelinTelecomCalcOrsKpi.loadMeasurements', WARNING, "Skipped data during KPI calculation: %s" % str(e))
measurement = alogm.read() measurement = alogm.read()
except amari_kpi.LogError as e: except amari_kpi.LogError as e:
# Invalid measurement: simply skip it # Invalid measurement: simply skip it
LOG('WendelinTelecomCalcOrsKpi.loadMeasurements', WARNING, "Skipped data during KPI calculation: %s" % e) LOG('WendelinTelecomCalcOrsKpi.loadMeasurements', WARNING, "Skipped data during KPI calculation: %s" % str(e))
finally: finally:
alogm.close() alogm.close()
return mlog return mlog
...@@ -48,7 +48,7 @@ def calcEnbKpi(data, t_period): ...@@ -48,7 +48,7 @@ def calcEnbKpi(data, t_period):
try: try:
erab_accessibility = calc.erab_accessibility() erab_accessibility = calc.erab_accessibility()
except AssertionError as e: except AssertionError as e:
LOG('WendelinTelecomCalcOrsKpi.calcEnbKpi', WARNING, "Skipped data during KPI calculation: %s" % e) LOG('WendelinTelecomCalcOrsKpi.calcEnbKpi', WARNING, "Skipped data during KPI calculation: %s" % str(e))
continue continue
vt.append(calc.tau_lo) vt.append(calc.tau_lo)
v_initial_epsb_estab_sr.append((erab_accessibility[0]['lo'], erab_accessibility[0]['hi'])) v_initial_epsb_estab_sr.append((erab_accessibility[0]['lo'], erab_accessibility[0]['hi']))
...@@ -62,7 +62,7 @@ def calcEnbKpi(data, t_period): ...@@ -62,7 +62,7 @@ def calcEnbKpi(data, t_period):
try: try:
eutran_ip_throughput = calc.eutran_ip_throughput() eutran_ip_throughput = calc.eutran_ip_throughput()
except AssertionError as e: except AssertionError as e:
LOG('WendelinTelecomCalcOrsKpi.calcEnbKpi', WARNING, "Skipped data during KPI calculation: %s" % e) LOG('WendelinTelecomCalcOrsKpi.calcEnbKpi', WARNING, "Skipped data during KPI calculation: %s" % str(e))
continue continue
period_qci_data = [] period_qci_data = []
for qci_measurement in eutran_ip_throughput: for qci_measurement in eutran_ip_throughput:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment