Skip to content

Commit 8572ff1

Browse files
authored
Fix "syntax" error, thank you python.
`ValueError: dictionary update sequence element #0 has length 6; 2 is required` stupid error but technically correct.
1 parent 729d640 commit 8572ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

octoprint_simplyprint/websocket/simplyprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ def send_sp(
14241424

14251425
# Include tracked job_id with some message types.
14261426
if evt_name in ("file_progress", "job_info") and self._current_job_id is not None and isinstance(data, dict):
1427-
data.update({"job_id", self._current_job_id})
1427+
data.update({"job_id": self._current_job_id})
14281428

14291429
packet = {"type": evt_name, "data": data}
14301430
if evt_name != "stream":

0 commit comments

Comments
 (0)