1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

pass an error instance up to the application

This commit is contained in:
Joel Bender 2021-07-30 23:15:50 -04:00
parent 172070fc85
commit d08675637c

View File

@ -1530,7 +1530,7 @@ class ApplicationServiceAccessPoint(ApplicationServiceElement, ServiceAccessPoin
xpdu.decode(apdu)
except Exception as err:
ApplicationServiceAccessPoint._exception("complex ack decoding error: %r", err)
return
xpdu = Error(errorClass=7, errorCode=57) # communication, invalidTag
elif isinstance(apdu, ErrorPDU):
atype = error_types.get(apdu.apduService)