Unverified Kaydet (Commit) 8cb186b6 authored tarafından Ben Firshman's avatar Ben Firshman

Add timeout to from_env

Signed-off-by: 's avatarBen Firshman <ben@firshman.co.uk>
üst 2b34e0b8
...@@ -108,8 +108,10 @@ class Client( ...@@ -108,8 +108,10 @@ class Client(
@classmethod @classmethod
def from_env(cls, **kwargs): def from_env(cls, **kwargs):
timeout = kwargs.pop('timeout', None)
version = kwargs.pop('version', None) version = kwargs.pop('version', None)
return cls(version=version, **kwargs_from_env(**kwargs)) return cls(timeout=timeout, version=version,
**kwargs_from_env(**kwargs))
def _retrieve_server_version(self): def _retrieve_server_version(self):
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment