Skip to content

lisa.utils: Fix deprecate() decorator handling of import errors

Douglas Raillard requested to merge douglas-raillard-arm/lisa:_home_pr90499 into main

FIX

A module can end up being imported several times if it results in an ImportError, as each client will import it again. Even if the module overall fails to import, it can still execute successfully @deprecate calls, which will end up being repeated on the same function multiple times.

Remove the check that prevents calling the decorator several times for the same item name.

Merge request reports