From a40583d477d7152494a2e5783b2de136190db60d Mon Sep 17 00:00:00 2001 From: 0xsysr3ll <31414959+0xSysR3ll@users.noreply.github.com> Date: Mon, 25 Jul 2022 19:01:23 +0200 Subject: [PATCH] Fix issue #104 --- core/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/plugin.py b/core/plugin.py index 92127fc..0b3a338 100644 --- a/core/plugin.py +++ b/core/plugin.py @@ -9,7 +9,7 @@ import itertools import base64 import datetime -import collections +from collections.abc import Mapping import threading import time import utils.config @@ -18,8 +18,8 @@ def _recursive_update(d, u): # Update value of a nested dictionary of varying depth for k, v in u.items(): - if isinstance(d, collections.Mapping): - if isinstance(v, collections.Mapping): + if isinstance(d, Mapping): + if isinstance(v, Mapping): r = _recursive_update(d.get(k, {}), v) d[k] = r else: