8000 Deprecate more useless exceptions · sugarguo/msgpack-python@b2a8ce6 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2a8ce6

Browse files
committed
Deprecate more useless exceptions
1 parent 6e36476 commit b2a8ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

msgpack/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class UnpackException(Exception):
2-
pass
2+
"""Deprecated. Use Exception instead to catch all exception during unpacking."""
33

44

55
class BufferFull(UnpackException):
@@ -11,7 +11,7 @@ class OutOfData(UnpackException):
1111

1212

1313
class UnpackValueError(UnpackException, ValueError):
14-
pass
14+
"""Deprecated. Use ValueError instead."""
1515

1616

1717
class ExtraData(UnpackValueError):

0 commit comments

Comments
 (0)
0