diff --git a/opensipscli/modules/diagnose.py b/opensipscli/modules/diagnose.py index 2807a9c..65de92a 100644 --- a/opensipscli/modules/diagnose.py +++ b/opensipscli/modules/diagnose.py @@ -738,7 +738,7 @@ def diagnose_transport_load(self, transport, pgroups, load, net_wait): if have_psutil: try: tot_cpu += proc['cpumon'].cpu_percent(interval=None) - except psutil._exceptions.NoSuchProcess: + except psutil.NoSuchProcess: """opensips may be restarted in the meantime!""" avg_cpu = round(tot_cpu / len(procs))