Skip to content

Commit

Permalink
test with rejectMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTremblay committed Sep 15, 2024
1 parent 19f8d57 commit 66310aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BAC0/core/functions/Alias.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio

from bacpypes3.app import Application
from bacpypes3.npdu import RejectMessageToNetwork
from bacpypes3.pdu import Address, GlobalBroadcast

from BAC0.core.app.asyncApp import BAC0Application
Expand Down Expand Up @@ -126,6 +127,8 @@ async def what_is_network_number(self, destination=None, timeout=3):
_app.nse.what_is_network_number(), timeout
)
return network_number
except RejectMessageToNetwork as error:
self._log.warning(f"Reject Network Number : {error}")
except asyncio.TimeoutError:
# Handle the timeout error
self.log(
Expand Down

0 comments on commit 66310aa

Please sign in to comment.