8000 allow cmd_read_buffer to handle raw bytes and dicts (Fixes issue #740) by ryjelsum · Pull Request #835 · bkerler/edl · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion edlclient/Library/firehose.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def cmd_read_buffer(self, physical_partition_number, start_sector, num_partition

progbar = progress(self.cfg.SECTOR_SIZE_IN_BYTES)
rsp = self.xmlsend(data, self.skipresponse)
if "value" in rsp.data and rsp.data["value"] == "NAK":
if isinstance(rsp.data, dict) and rsp.data.get("value") == "NAK":
return rsp
self.cdc.xmlread = False
resData = bytearray()
Expand Down
0