diff --git a/sio_model.py b/sio_model.py index db3a909..2c15cc1 100644 --- a/sio_model.py +++ b/sio_model.py @@ -110,6 +110,8 @@ class SioDecorator: self.cmds[f'/{cmd}'] = func async def route2cmd_and_run(self): + if self._cmd == '': + return None func = self.cmds.get(self._cmd[0]) if func: sender_id = self.data['message']['senderId']