summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cramer <dcramer@gmail.com>2012-07-23 11:21:14 -0700
committerDavid Cramer <dcramer@gmail.com>2012-07-23 11:21:14 -0700
commitc1c2be01e28a3e3affb09b08d89ac4f5fdb474e8 (patch)
tree3bcdf85d354bf42506203683a8fd5826dbc355dc
parenta31b5f10d06e69a8ad4330d5d2812cd5bf395bbd (diff)
downloadraven-c1c2be01e28a3e3affb09b08d89ac4f5fdb474e8.tar.gz
Only show a warning if an actual value is passed for timeoutthreaded-client
-rw-r--r--raven/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/raven/base.py b/raven/base.py
index 4206297..8b74e2e 100644
--- a/raven/base.py
+++ b/raven/base.py
@@ -161,7 +161,7 @@ class Client(object):
msg = 'Missing configuration for client. Please see documentation.'
raise TypeError(msg)
- if 'timeout' in kwargs:
+ if kwargs.get('timeout') is not None:
warnings.warn('The ``timeout`` option no longer does anything. Pass the option to your transport instead.')
self.servers = servers