1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 15:49:25 +08:00

Fix: unexcepted NoneType from deep_get

This commit is contained in:
ZuoSiZhu
2025-03-28 01:07:18 +08:00
parent 58a217d98f
commit 4e6de1b4d4

View File

@@ -33,6 +33,8 @@ def deep_get(d, keys, default=None):
try:
for k in keys:
d = d[k]
if d is None:
return default
return d
# No such key
except KeyError: