fix for clientversion

This commit is contained in:
Erik Frojdh
2020-09-23 14:54:16 +02:00
parent 79a03c6c92
commit b6d5efd441
2 changed files with 18 additions and 13 deletions

View File

@@ -113,7 +113,10 @@ def make_string_path(path):
def set_using_dict(func, args):
if isinstance(args, dict) and all(isinstance(k, int) for k in args.keys()):
for key, value in args.items():
func(value, [key])
try:
func(value, [key])
except TypeError:
func(value, key)
else:
func(args)