Skip to content

Commit 3a79ed0

Browse files
committed
Catch all exceptions in type check
1 parent 702b5dd commit 3a79ed0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dpath/segments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def set(
309309
) -> MutableMapping:
310310
"""
311311
Set the value in obj at the place indicated by segments. If creator is not
312-
None (default __default_creator__), then call the creator function to
312+
None (default _default_creator), then call the creator function to
313313
create any missing path components.
314314
315315
set(obj, segments, value) -> obj
@@ -326,7 +326,7 @@ def set(
326326
# Unfortunately, for our use, 'x in thing' for lists checks
327327
# values, not keys whereas dicts check keys.
328328
current[segment]
329-
except (KeyError, IndexError):
329+
except:
330330
if creator is not None:
331331
creator(current, segments, i, hints)
332332
else:

dpath/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "2.1.0"
1+
VERSION = "2.1.1"

0 commit comments

Comments
 (0)