diff options
author | Giuseppe Lavagetto <lavagetto@users.noreply.github.com> | 2015-04-23 11:16:00 +0200 |
---|---|---|
committer | Giuseppe Lavagetto <lavagetto@users.noreply.github.com> | 2015-04-23 11:16:00 +0200 |
commit | 5f56f5f94b350039aca740eceb7b0b9712e59a3b (patch) | |
tree | 20fea48be195c779d934c14881760df4b47766c1 /src | |
parent | 00a00840db49e66416da47425cf817ed0c91c90f (diff) | |
parent | fbfc8e58c4993da32e41826875aa2078db4ec576 (diff) |
Merge pull request #89 from SkyLothar/add-default-recursive
do not send parameters with `None` value to etcd
Diffstat (limited to 'src')
-rw-r--r-- | src/etcd/__init__.py | 1 | ||||
-rw-r--r-- | src/etcd/client.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/etcd/__init__.py b/src/etcd/__init__.py index 9da1049..9367ce9 100644 --- a/src/etcd/__init__.py +++ b/src/etcd/__init__.py @@ -160,6 +160,7 @@ class EtcdError(object): 201: ValueError, 202: ValueError, 203: ValueError, + 209: ValueError, 300: Exception, 301: Exception, 400: Exception, diff --git a/src/etcd/client.py b/src/etcd/client.py index 516e335..d5378ee 100644 --- a/src/etcd/client.py +++ b/src/etcd/client.py @@ -338,7 +338,7 @@ class Client(object): if k in self._read_options: if type(v) == bool: params[k] = v and "true" or "false" - else: + elif v is not None: params[k] = v timeout = kwdargs.get('timeout', None) |