Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Fix attribute error when upgrading via dfu serial #394

Closed
wants to merge 1 commit into from
Closed

Fix attribute error when upgrading via dfu serial #394

wants to merge 1 commit into from

Conversation

gudnimg
Copy link

@gudnimg gudnimg commented Nov 30, 2022

Fixes #393

Even if the serial number key exists, it's value can be None. This raises a AttributeError when .lower() is called on NoneType.

Quick solution is to use get() on kwargs. This returns None if the key doesn't exist or it's value is None.

Without this fix I am unable to upgrade by BLE dongle. But with this fix, upgrading is successful.

@CLAassistant
Copy link

CLAassistant commented Nov 30, 2022

CLA assistant check
All committers have signed the CLA.

Even if the serial number key exists, it's value can be None. This raises
a AttributeError when .lower() is called on NoneType.

Quick solution is to use get() on kwargs. This returns None if
the key doesn't exist or it's value is None.

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
@kenr
Copy link
Contributor

kenr commented Jan 17, 2023

We do do not have capacity to maintain and release new versions of this utility.

The SDFU feature is moved into a new utility with the same name. The utility can be found here: https://www.nordicsemi.com/Products/Development-tools/nrf-util

@kenr kenr closed this Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError when upgrading firmware via DFU Serial
3 participants