code: def _try_send_msg(msg, handler):
      if handler.disabledByError:
          log.debug(
              "skipping msg %r to notify port %i (notifications "
              "disabled due to previous error)",
              msg,
              handler.port,
          )
          return
      try:
          _send_msg(msg, handler.port)
      except MsgSendError as e:
          _handle_msg_send_error(e, msg, handler)
  
file_path: guildai/guild/cmd_notify.py
imports: import logging
  import socket
label_desc: Use image node_id 5 for calling a global function with example usage: _try_send_msg(msg, handler) without return types