Skip to content

Commit b71ad89

Browse files
authored
Merge pull request jplana#222 from ashcrow/error-minor-fixes
Minor fixes for error classes.
2 parents 5433cde + 8b6f0d4 commit b71ad89

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/etcd/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,16 @@ class EtcdDirNotEmpty(EtcdValueError):
241241
"""
242242
pass
243243

244+
244245
class EtcdLockExpired(EtcdException):
245246
"""
246247
Our lock apparently expired while we were trying to acquire it.
247248
"""
249+
pass
248250

249251

250252
class EtcdError(object):
251-
# See https://github.com/coreos/etcd/blob/master/Documentation/errorcode.md
253+
# See https://github.com/coreos/etcd/blob/master/Documentation/v2/errorcode.md
252254
error_exceptions = {
253255
100: EtcdKeyNotFound,
254256
101: EtcdCompareFailed,
@@ -262,7 +264,7 @@ class EtcdError(object):
262264
# 109: Non-public: existing peer addr.
263265
110: EtcdInsufficientPermissions,
264266

265-
200: EtcdValueError,
267+
200: EtcdValueError, # Not part of v2
266268
201: EtcdValueError,
267269
202: EtcdValueError,
268270
203: EtcdValueError,

0 commit comments

Comments
 (0)