Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

pycom.nvs_get() does not return None if non-existant key #306

Open
@philwilkinson40

Description

@philwilkinson40

LoPy4
On the latest firmware
Pycom MicroPython 1.18.2.r7 [v1.8.6-849-df9f237] on 2019-05-14; LoPy4 with ESP32

>>> import pycom
>>> pycom.nvs_get('anything')==None
ValueError: No matching object for the provided key

so I used a previous version of the firmware
Pycom MicroPython 1.18.2.r2 [v1.8.6-849-5cf02dc] on 2019-03-07; LoPy4 with ESP32

>>>import pycom
>>>pycom.nvs_get('anything')==None
True
>>>

docs state
If a non-existing key is given the returned value will be None.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions