summaryrefslogtreecommitdiff
path: root/urllib3/exceptions.py
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@shazow.net>2015-12-29 12:28:22 -0800
committerAndrey Petrov <andrey.petrov@shazow.net>2015-12-29 12:28:22 -0800
commit27df29b1d94d6c50af1eb1bd85b4ee12adf8a3c2 (patch)
tree97731a22ac7f5344402f24ebf4f2a9039b339ef7 /urllib3/exceptions.py
parent12d04b7cc8cefce176f5788485db7b0692b9adb2 (diff)
parentc3104c8c42dc8426d0ac17fdcb07d8b3126fe7b6 (diff)
downloadurllib3-1.14.tar.gz
Merging new release version: 1.141.14
Diffstat (limited to 'urllib3/exceptions.py')
-rw-r--r--urllib3/exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/urllib3/exceptions.py b/urllib3/exceptions.py
index 8e07eb61..f2e65917 100644
--- a/urllib3/exceptions.py
+++ b/urllib3/exceptions.py
@@ -180,6 +180,14 @@ class SNIMissingWarning(HTTPWarning):
pass
+class DependencyWarning(HTTPWarning):
+ """
+ Warned when an attempt is made to import a module with missing optional
+ dependencies.
+ """
+ pass
+
+
class ResponseNotChunked(ProtocolError, ValueError):
"Response needs to be chunked in order to read it as chunks."
pass