diff --git a/photoshop/api/action_manager/_main_types/action_descriptor.py b/photoshop/api/action_manager/_main_types/action_descriptor.py index af5a70f5..c7e37920 100644 --- a/photoshop/api/action_manager/_main_types/action_descriptor.py +++ b/photoshop/api/action_manager/_main_types/action_descriptor.py @@ -24,7 +24,7 @@ def load(cls, adict: dict, namespace: dict): # pass globals() for namespace continue # py37 compat try: - exec(r'val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)') + exec(r'val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)') # noqa except SyntaxError: val = v if parsetype(v) == "others" else namespace[parsetype(v)].load(v) new.uput(k, val) diff --git a/photoshop/api/action_manager/_main_types/action_list.py b/photoshop/api/action_manager/_main_types/action_list.py index ebe8f656..c4fc4cf1 100644 --- a/photoshop/api/action_manager/_main_types/action_list.py +++ b/photoshop/api/action_manager/_main_types/action_list.py @@ -20,7 +20,7 @@ def load(cls, alist: list, namespace: dict): # pass globals() for namespace for v in alist: # py37 compat try: - exec(r'val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)') + exec(r'val = v if (dtype := parsetype(v)) == "others" else namespace[dtype].load(v)') # noqa except SyntaxError: val = v if parsetype(v) == "others" else namespace[parsetype(v)].load(v) new.uput(val)