Feature ev_data is None -> continue

This commit is contained in:
Maxim Khomutov 2023-08-17 18:32:48 +03:00
parent 074589da47
commit 42e4a8e05e
2 changed files with 3 additions and 1 deletions

View File

@ -617,6 +617,8 @@ class Client:
ev_data_list.extend(d2) ev_data_list.extend(d2)
need_send = True need_send = True
for ev_data in ev_data_list: for ev_data in ev_data_list:
if ev_data is None:
continue
try: try:
message = ev_data["message"] message = ev_data["message"]
to_all = ev_data.get("to_all") to_all = ev_data.get("to_all")

View File

@ -11,7 +11,7 @@ __title__ = 'KuiToi-Server'
__description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.' __description__ = 'BeamingDrive Multiplayer server compatible with BeamMP clients.'
__url__ = 'https://github.com/kuitoi/kuitoi-Server' __url__ = 'https://github.com/kuitoi/kuitoi-Server'
__version__ = '0.4.5' __version__ = '0.4.5'
__build__ = 2300 # Я это считаю лог файлами __build__ = 2303 # Я это считаю лог файлами
__author__ = 'SantaSpeen' __author__ = 'SantaSpeen'
__author_email__ = 'admin@kuitoi.su' __author_email__ = 'admin@kuitoi.su'
__license__ = "FPA" __license__ = "FPA"