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):
mlog.append(measurement)
except Exception as e:
# 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()
except amari_kpi.LogError as e:
# 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:
alogm.close()
return mlog
......@@ -48,7 +48,7 @@ def calcEnbKpi(data, t_period):
try:
erab_accessibility = calc.erab_accessibility()
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
vt.append(calc.tau_lo)
v_initial_epsb_estab_sr.append((erab_accessibility[0]['lo'], erab_accessibility[0]['hi']))
......@@ -62,7 +62,7 @@ def calcEnbKpi(data, t_period):
try:
eutran_ip_throughput = calc.eutran_ip_throughput()
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
period_qci_data = []
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