diff --git a/Ccs/ccs_function_lib.py b/Ccs/ccs_function_lib.py index e246145cc0c15044159d1dfefb09e0f544b233c8..6de174b5a68c6ba85499aaaf76defaef5be377d5 100644 --- a/Ccs/ccs_function_lib.py +++ b/Ccs/ccs_function_lib.py @@ -3340,7 +3340,7 @@ def _tcsend_common(tc_bytes, apid, st, sst, sleep=0., pool_name='LIVE', pkt_time return # get the SSC of the sent packet - ssc = counters[int(str(apid), 0)] + ssc = counters.setdefault(int(str(apid), 0), 1) # increase the SSC counter counters[int(str(apid), 0)] += 1 # More specific Logging format that is compatible with the TST