[ERROR ] Failed to import module localemod

Wondering if anyone has seen this error and what steps to take to resolve the issue.

After upgrade from Qubes 4.0 to 4.1 an update of dom0 returned the following error:

[ERROR ] Failed to import module localemod, this is due most likely to a syntax error:
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/salt/loader.py”, line 1685, in _load_module
mod = spec.loader.load_module()
File “”, line 522, in _check_name_wrapper
File “”, line 1027, in load_module
File “”, line 852, in load_module
File “”, line 265, in _load_module_shim
File “”, line 702, in _load
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/var/cache/salt/minion/extmods/modules/localemod.py”, line 222, in
AttributeError: module ‘salt.utils.decorators’ has no attribute ‘which’

A search for the affected module seems to show that the installed version of localemod.py differs from other versions in that the ‘which’ attribute throwing the error is present but not in the most recent versions of the module I could find.

I haven’t dug into the system to see where this call is made and was hoping maybe someone more knowledgable of the system could save me some time.