Handle decoding of None type
Bug #1968044 reported by
Ekaterina Chernova
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
etcd3gw |
Expired
|
Undecided
|
Unassigned |
Bug Description
In utils there is a decode method which help to provide corresponding operation and suppose to be universal.
But if None is passed to _decode it is turned into b"None", but excepted value is b"".
I suggest fixing this behavior.
To post a comment you must log in.
These methods in utils is not at all universal but are implemented for internal usage within etcd3gw.
Unless there is any actual problems causing the behavior of etcd3gw then adding that handling is just useless.