Skip to content

Handle nonexistent fw_size attribute - #112

Open
mschwan-phytec wants to merge 1 commit into
thingsboard:masterfrom
mschwan-phytec:wip-fix-keyerror-fw-size
Open

Handle nonexistent fw_size attribute#112
mschwan-phytec wants to merge 1 commit into
thingsboard:masterfrom
mschwan-phytec:wip-fix-keyerror-fw-size

Conversation

@mschwan-phytec

Copy link
Copy Markdown

fw_size may not be present, when issuing an OTA update with a direct URL instead of a filename/blob. Use a sane default of zero bytes for the firmware size, as we are just transferring a URL. This fixes a KeyError exception.

fw_size may not be present, when issuing an OTA update with a direct URL
instead of a filename/blob. Use a sane default of zero bytes for the
firmware size, as we are just transferring a URL. This fixes a KeyError
exception.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant