|
@@ -49,4 +49,7 @@ def notify(message: Any, *,
|
|
|
options = {ARG_MAP.get(key, key): value for key, value in locals().items() if key != 'kwargs' and value is not None}
|
|
|
options['message'] = str(message)
|
|
|
options.update(kwargs)
|
|
|
- outbox.enqueue_message('notify', options, globals.get_client().id)
|
|
|
+ if not globals.get_client().has_socket_connection:
|
|
|
+ globals.log.warning(f'notification "{message}" was ignored because the client is not connected')
|
|
|
+ else:
|
|
|
+ outbox.enqueue_message('notify', options, globals.get_client().id)
|