Add handling of occasional exception in dmrbits.tobytes() in HBP class

This commit is contained in:
Simon 2021-01-24 18:56:33 +00:00
parent 739213e543
commit 8116fe38e1
3 changed files with 6 additions and 2 deletions

View File

@ -1401,7 +1401,11 @@ class routerHBP(HBSYSTEM):
# Create a Burst B-E packet (Embedded LC)
elif _dtype_vseq in [1,2,3,4]:
dmrbits = dmrbits[0:116] + _target_status[_target['TS']]['TX_EMB_LC'][_dtype_vseq] + dmrbits[148:264]
dmrpkt = dmrbits.tobytes()
try:
dmrpkt = dmrbits.tobytes()
except AttributeError:
logger.debug('(%s) AttributeError - dmrbits.tobytes()',self._system)
_tmp_data = b''.join([_tmp_data, dmrpkt, _data[53:55]])
# Transmit the packet to the destination system

View File

@ -1,6 +1,6 @@
FROM python:3.7-alpine
COPY entrypoint /entrypoint
COPY entrypoint-base /entrypoint
RUN adduser -D -u 54000 radio && \
apk update && \