jplana / python-etcd

A python client for etcd
Other
522 stars 210 forks source link

Check if node is None #270

Closed maikelpoot closed 2 years ago

maikelpoot commented 4 years ago

Default value of node is None, and if thats the case an TypeError("argument of type 'NoneType' is not iterable" exception is raised. Checking first if node is None, prevents this exception and doesn't start an avalanche down the mountain.

(tested agains etcd 3.4.3, with api v2 enabled)