Skip to content

Commit 690b316

Browse files
fix: #81 - cli raising exception for diagnostic data
1 parent a4c5dd1 commit 690b316

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roborock/cloud_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ async def _send_command(
164164
msg = MessageParser.build(roborock_message, local_key, False)
165165
self._send_msg_raw(msg)
166166
(response, err) = await self._async_response(request_id, response_protocol)
167-
self._diagnostic_data[method.name] = {"params": params, "response": response, "error": err}
167+
self._diagnostic_data[method if method is not None else "unknown"] = {
168+
"params": params,
169+
"response": response,
170+
"error": err,
171+
}
168172
if err:
169173
raise CommandVacuumError(method, err) from err
170174
if response_protocol == 301:

0 commit comments

Comments
 (0)